Skip to content

Commit 45e0d45

Browse files
committed
Fixed bug #63235 (buffer overflow in use of SQLGetDiagRec)
1 parent 5d9fb8f commit 45e0d45

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? 2012, PHP 5.3.19
44

5+
- PDO:
6+
. Fixed bug #63235 (buffer overflow in use of SQLGetDiagRec).
7+
(Martin Osvald, Remi)
8+
59
?? ??? 2012, PHP 5.3.18
610

711
(NOTE: Add your entries above for 5.3.19, entries for 5.3.18 should only

ext/pdo_odbc/odbc_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void pdo_odbc_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, PDO_ODBC_HSTMT statement,
114114
* diagnostic records (which can be generated by PRINT statements
115115
* in the query, for instance). */
116116
while (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) {
117-
char discard_state[5];
117+
char discard_state[6];
118118
char discard_buf[1024];
119119
SQLINTEGER code;
120120
rc = SQLGetDiagRec(htype, eh, recno++, discard_state, &code,

0 commit comments

Comments
 (0)