Bug #67130 [Com]: nextRowset causes memory corruption

From: Date: Mon, 15 Mar 2021 07:01:57 +0000
Subject: Bug #67130 [Com]: nextRowset causes memory corruption
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232717@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67130&edit=1 ID: 67130 Comment by: modelmonikasharma at gmail dot com Reported by: kaido at tradenet dot ee Summary: nextRowset causes memory corruption Status: Closed Type: Bug Package: PDO DBlib Operating System: linux PHP Version: master-Git-2014-04-24 (Git) Assigned To: adambaratz Block user comment: N Private report: N New Comment: I Don't thing anyone write better that this. Amazing Post!! Keep it up! <a href="https://www.aarinkaur.com/">Mumbai Escorts</a> <a href="https://www.aarinkaur.com/">Escorts Mumbai</a> Previous Comments: ------------------------------------------------------------------------ [2015-10-18 09:53:55] miracle at rpz dot name Fixed in #69757 ------------------------------------------------------------------------ [2015-07-06 19:59:04] John_Schlick at hotmail dot com I have experienced this problem on PHP 5.5.9-1ubuntu4.5 using the PDO A stored procedure results in a variable number of rowsets, (in this case, 3), on the 3rd call to nextrowset it returns true, so when I then trustingly do: $result = $stmt->fetch(\PDO::FETCH_OBJ); it results in: SQLSTATE[HY000]: General error ------------------------------------------------------------------------ [2014-12-30 10:42:31] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ [2014-10-23 03:39:12] ssufficool@php.net Please try using this snapshot: http://snaps.php.net/php-trunk-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Fixed along with Bug #64511 ------------------------------------------------------------------------ [2014-10-21 03:57:11] ssufficool@php.net Instead of strdup I would null the col name pointers to (hopefully) cause pdo core to skip the deallocate. I would hate to introduce an ever so slight performance penalty with a strdup if not *absolutely* needed. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=67130 -- Edit this bug report at https://bugs.php.net/bug.php?id=67130&edit=1

« previous php.bugs (#232717) next »