Bug #61183 [PATCH]: Firebird PDO memory corruption
| From: | cmb@php.net | Date: | Fri, 16 Sep 2016 17:22:14 +0000 |
| Subject: | Bug #61183 [PATCH]: Firebird PDO memory corruption | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-204083@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61183&edit=1
ID: 61183
Patch added by: cmb@php.net
Reported by: noxwizard at gmail dot com
Summary: Firebird PDO memory corruption
Status: Assigned
Type: Bug
Package: PDO Firebird
Operating System: Windows Server 2008 x86
PHP Version: 5.5
Assigned To: mariuz
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: firebird_bind_blob
Revision: 1474046532
URL: https://bugs.php.net/patch-display.php?bug=61183&patch=firebird_bind_blob&revision=1474046532
Previous Comments:
------------------------------------------------------------------------
[2016-09-15 13:04:42] cmb@php.net
Related To: Bug #73087
------------------------------------------------------------------------
[2015-07-16 14:09:00] mariuz@php.net
db created
https://gist.github.com/mariuz/108810265b9c67fc747d#file-test-db-for-phpbug-61183-sql
test https://gist.github.com/mariuz/b00d148812e3a1657ef1
ran without issues
...
Statement run: 4999
------------------------------------------------------------------------
[2015-07-16 13:41:28] mariuz@php.net
Started to test the patch
patch -p1 < ~/Downloads/Blob_Bind_Fix.patch.txt
patching file ext/pdo_firebird/firebird_statement.c
Hunk #1 succeeded at 422 (offset -2 lines).
------------------------------------------------------------------------
[2013-02-13 04:25:05] james at kenjim dot com
Related To: Bug #63356
------------------------------------------------------------------------
[2012-10-16 03:08:42] paul dot ishenin at gmail dot com
I have a crash (0xc0000005 exception) when I execute a statement which inserts or
updates blob and values are bind using bindValue(). But if I use bindParam()
instead there is no crash. For example:
$q = Yii::app()->db->createCommand('INSERT INTO TEST (BL) VALUES (:bl)');
// this will crash $q->bindValue(':bl', bl, PDO::PARAM_LOB);
$q->bindParam(':bl', bl, PDO::PARAM_LOB); // this will not crash
$q->execute();
------------------------------------------------------------------------
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=61183
--
Edit this bug report at https://bugs.php.net/bug.php?id=61183&edit=1