ID: 48193
User updated by: leo dot nnnaaarrrdddooo at gmail dot com
Reported By: leo dot nnnaaarrrdddooo at gmail dot com
Status: Open
Bug Type: ODBC related
Operating System: Debian 5.0 "Lenny" AMD64
PHP Version: 5.2CVS-2009-05-08 (CVS)
New Comment:
I did two clean installs of Debian 5.0 AMD64 to check I didn't have
anything wrong installed.
Previous Comments:
------------------------------------------------------------------------
[2009-05-08 17:26:38] leo dot nnnaaarrrdddooo at gmail dot com
Description:
------------
ODBC crashes when using php script included (using a MySQL database),
and an
ALERT - canary mismatch on efree() - heap overflow detected (attacker
'X.X.X.X', etc ...)
line pops up in the error.log for apache.
This happens on current stable Debian 5.0 "lenny" AMD64, with system up
to date as of today, running: apache2, php5, mysql-server.
Compiling latest MySQL odbc driver version 5.1.5 doesn't crash, but
does lock up the calling process if same script is run with php5 client
from command line.
Reproduce code:
---------------
$conn="DRIVER={MySQL}; DatabaseName='test';
CommLinks=tcpip(Host=localhost); ";
$conn=odbc_connect($conn, "user", "");
$sql='SELECT * FROM test.T1;';
echo $sql;
$pg_query=odbc_exec($pg_conn, $sql);
odbc_close($pg_conn);
echo "A";
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48193&edit=1