Bug #67130 [NoF->Csd]: nextRowset causes memory corruption

From: Date: Wed, 21 Sep 2016 19:22:44 +0000
Subject: Bug #67130 [NoF->Csd]: nextRowset causes memory corruption
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204167@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 Updated by: adambaratz@php.net Reported by: kaido at tradenet dot ee Summary: nextRowset causes memory corruption -Status: No Feedback +Status: Closed Type: Bug Package: PDO DBlib Operating System: linux PHP Version: master-Git-2014-04-24 (Git) -Assigned To: ssufficool +Assigned To: adambaratz Block user comment: N Private report: N 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 (#204167) next »