php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch php-5.3.3-pdo-overflow.patch for PDO related Bug #63235

Patch version 2012-10-08 07:37 UTC

Return to Bug #63235 | Download this patch
Patch Revisions:

Developer: remi@php.net

diff -up php-5.3.3/ext/pdo_odbc/odbc_driver.c.ss_guard php-5.3.3/ext/pdo_odbc/odbc_driver.c
--- php-5.3.3/ext/pdo_odbc/odbc_driver.c.ss_guard	2012-06-28 15:08:51.304337652 +0200
+++ php-5.3.3/ext/pdo_odbc/odbc_driver.c	2012-06-28 15:09:46.741644589 +0200
@@ -114,7 +114,7 @@ void pdo_odbc_error(pdo_dbh_t *dbh, pdo_
 	 * 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,
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 03:02:42 2014 UTC