From: skennedy at vcn dot com Operating system: FreeBSD 6.2 PHP version: 5.2.5 PHP Bug Type: MSSQL related Bug description: suhosin patch detects heap overflow on mssql_free_result()
Description: ------------ Getting an "ALERT - canary mismatch on efree() - heap overflow detected" error when running two certain queries. This seems to be triggered when the second query runs. The error indicates the mssql_free_result() is the offender, but it happens even when mssql_free_result() is omitted (however does not show the offending line number). This bug is the similar, if not the same, as #40119. Reproduce code: --------------- http://bandwidthbuilders.com/php_mssql_suhosin_bug.phps Expected result: ---------------- To run without error and exit cleanly. Actual result: -------------- ALERT - canary mismatch on efree() - heap overflow detected (attacker 'REMOTE_ADDR not set', file '/usr/home/bwbuilders/test.php', line 33) -- Edit bug report at http://bugs.php.net/?id=43861&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43861&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43861&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43861&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43861&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43861&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43861&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43861&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43861&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43861&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43861&r=support Expected behavior: http://bugs.php.net/fix.php?id=43861&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43861&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43861&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43861&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43861&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43861&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43861&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43861&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43861&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43861&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43861&r=mysqlcfg