| Newsgroups |
php.bugs |
| Message-ID |
<[email protected]> |
From: sixd
Operating system: n/a
PHP version: 5.3SVN-2010-04-16 (SVN)
Package: OCI8 related
Bug Type: Bug
Bug description:Uninitialized memory reference with oci_bind_array_by_name
Description:
------------
gcov.php.net shows all oci_bind_array_by_name tests giving a trace like:
==14231== Conditional jump or move depends on uninitialised value(s)
==14231== at 0x8542271: php_oci_bind_pre_exec (oci8_statement.c:816)
==14231== by 0x8AFE59E: zend_hash_apply_with_argument (zend_hash.c:697)
==14231== by 0x853DD3F: php_oci_statement_execute
(oci8_statement.c:456)
==14231== by 0x8557E7E: zif_oci_execute (oci8_interface.c:1295)
==14231== by 0x8B38E49: zend_do_fcall_common_helper_SPEC
(zend_vm_execute.h:313)
==14231== by 0x8B43391: ZEND_DO_FCALL_SPEC_CONST_HANDLER
(zend_vm_execute.h:1603)
==14231== by 0x8B378EE: execute (zend_vm_execute.h:104)
==14231== by 0x8AE2869: zend_execute_scripts (zend.c:1194)
==14231== by 0x8A10176: php_execute_script (main.c:2260)
==14231== by 0x8CAE9E9: main (php_cli.c:1192)
==14231==
==14231== Use of uninitialised value of size 4
==14231== at 0x854227A: php_oci_bind_pre_exec (oci8_statement.c:816)
==14231== by 0x8AFE59E: zend_hash_apply_with_argument (zend_hash.c:697)
==14231== by 0x853DD3F: php_oci_statement_execute
(oci8_statement.c:456)
==14231== by 0x8557E7E: zif_oci_execute (oci8_interface.c:1295)
==14231== by 0x8B38E49: zend_do_fcall_common_helper_SPEC
(zend_vm_execute.h:313)
==14231== by 0x8B43391: ZEND_DO_FCALL_SPEC_CONST_HANDLER
(zend_vm_execute.h:1603)
==14231== by 0x8B378EE: execute (zend_vm_execute.h:104)
==14231== by 0x8AE2869: zend_execute_scripts (zend.c:1194)
==14231== by 0x8A10176: php_execute_script (main.c:2260)
==14231== by 0x8CAE9E9: main (php_cli.c:1192)
==14231==
This is due to the oci_bind_by_name type check introduced
http://svn.php.net/viewvc?view=revision&revision=289264
This problem is present in OCI8 1.4.0 and 1.4.1
--
Edit bug report at http://bugs.php.net/bug.php?id=51577&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51577&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51577&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51577&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51577&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51577&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51577&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51577&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51577&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51577&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51577&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51577&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51577&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51577&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51577&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51577&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51577&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51577&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51577&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51577&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51577&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51577&r=mysqlcfg