|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-15 02:36 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
Description: ------------ 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 (pdo_odbc_stmt *)S->einfo.last_state. The length of this error code string ("IM0001") is 7 bytes, but last_state field declared as (php_pdo_odbc_int.h, line 121): char last_state[6]. So buffer overflow will happen when executing 'strcpy(S->einfo.last_state, "IM0001")'. Comparing to other PDO drivers it seems that error code should be 5 char in length, i.e. "IM001".