summaryrefslogtreecommitdiff
path: root/ext/pdo_odbc/odbc_driver.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-10-09 13:13:51 +0800
committerXinchen Hui <laruence@php.net>2012-10-09 13:13:51 +0800
commit45e0d452c5c369f0141fde780a6cbdd35d8f55b4 (patch)
tree58b864071024f51e9b7e00f7090476c409778e0d /ext/pdo_odbc/odbc_driver.c
parent5d9fb8ffeb58d51c44f8a4b9f6b2eaabe271ce82 (diff)
downloadphp-git-45e0d452c5c369f0141fde780a6cbdd35d8f55b4.tar.gz
Fixed bug #63235 (buffer overflow in use of SQLGetDiagRec)
Diffstat (limited to 'ext/pdo_odbc/odbc_driver.c')
-rwxr-xr-xext/pdo_odbc/odbc_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_odbc/odbc_driver.c b/ext/pdo_odbc/odbc_driver.c
index 84a147b80c..ca2808c6f5 100755
--- a/ext/pdo_odbc/odbc_driver.c
+++ b/ext/pdo_odbc/odbc_driver.c
@@ -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,