mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
Fixed bug #63235 (buffer overflow in use of SQLGetDiagRec)
This commit is contained in:
parent
5d9fb8ffeb
commit
45e0d452c5
4
NEWS
4
NEWS
@ -2,6 +2,10 @@ PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? 2012, PHP 5.3.19
|
||||
|
||||
- PDO:
|
||||
. Fixed bug #63235 (buffer overflow in use of SQLGetDiagRec).
|
||||
(Martin Osvald, Remi)
|
||||
|
||||
?? ??? 2012, PHP 5.3.18
|
||||
|
||||
(NOTE: Add your entries above for 5.3.19, entries for 5.3.18 should only
|
||||
|
@ -114,7 +114,7 @@ void pdo_odbc_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, PDO_ODBC_HSTMT statement,
|
||||
* diagnostic records (which can be generated by PRINT statements
|
||||
* in the query, for instance). */
|
||||
while (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) {
|
||||
char discard_state[5];
|
||||
char discard_state[6];
|
||||
char discard_buf[1024];
|
||||
SQLINTEGER code;
|
||||
rc = SQLGetDiagRec(htype, eh, recno++, discard_state, &code,
|
||||
|
Loading…
Reference in New Issue
Block a user