Bug #74625 [NEW]: Integer overflow in oci_bind_array_by_name

From: Date: Sun, 21 May 2017 17:31:36 +0000
Subject: Bug #74625 [NEW]: Integer overflow in oci_bind_array_by_name
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209209@lists.php.net to get a copy of this message
From: ingmar dot php at irsoft dot de Operating system: Any PHP version: 7.1.5 Package: OCI8 related Bug Type: Bug Bug description:Integer overflow in oci_bind_array_by_name Description: ------------ The same problem as fixed in bug #68298 for oci_bind_by_name exists in oci_bind_array_by_name as well. I have a tested patch and will submit it soon™. Test script: --------------- $sql = ' BEGIN SELECT -1 BULK COLLECT INTO :a FROM DUAL; END; '; $stmt = oci_parse($conn, $sql); oci_bind_array_by_name($stmt, ':a', $a, 5000, 10, SQLT_INT); oci_execute($stmt); var_dump($a); Expected result: ---------------- Array ( [0] => -1 ) Actual result: -------------- Array ( [0] => 4294967295 ) -- Edit bug report at https://bugs.php.net/bug.php?id=74625&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74625&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74625&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74625&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74625&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74625&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74625&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74625&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74625&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74625&r=support Expected behavior: https://bugs.php.net/fix.php?id=74625&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74625&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74625&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74625&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74625&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74625&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74625&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74625&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74625&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74625&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74625&r=mysqlcfg

« previous php.bugs (#209209) next »