go to bug id or search bugs for
In odbc_stmt.c, in functions odbc_stmt_set_param(), line 766 and
odbc_stmt_get_attr(), line 798, error code "IM0001" is placed in the
The length of this error code string ("IM0001") is 7 bytes, but
last_state field declared as (php_pdo_odbc_int.h, line 121):
So buffer overflow will happen when executing
Comparing to other PDO drivers it seems that error code should be 5
char in length, i.e. "IM001".
Add a Patch
Add a Pull Request
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.
Fixed in 5.2, 5.3 and HEAD. Thanks.