com php-src: update the actual sql parser file for #70861: ext/pdo/pdo_sql_parser.re

From: Date: Sun, 08 Nov 2015 03:22:31 +0000
Subject: com php-src: update the actual sql parser file for #70861: ext/pdo/pdo_sql_parser.re
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89691@lists.php.net to get a copy of this message
Commit: 84abd7f7bd586ad3220f2155ba09f308927194c7 Author: Anatol Belski <ab@php.net> Thu, 5 Nov 2015 14:45:09 +0100 Parents: 602e57e1c6c971e22b8da9d7518ead2b7f7a6f90 Branches: PHP-7.0.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=84abd7f7bd586ad3220f2155ba09f308927194c7 Log: update the actual sql parser file for #70861 Bugs: https://bugs.php.net/70861 Changed paths: M ext/pdo/pdo_sql_parser.re Diff: diff --git a/ext/pdo/pdo_sql_parser.re b/ext/pdo/pdo_sql_parser.re index 9922e03..96c131f 100644 --- a/ext/pdo/pdo_sql_parser.re +++ b/ext/pdo/pdo_sql_parser.re @@ -217,6 +217,10 @@ safe: zend_string *buf; buf = php_stream_copy_to_mem(stm, PHP_STREAM_COPY_ALL, 0); + if (!buf) { + ret = -1; + goto clean_up; + } if (!stmt->dbh->methods->quoter(stmt->dbh, ZSTR_VAL(buf), ZSTR_LEN(buf), &plc->quoted, &plc->qlen, param->param_type)) { /* bork */

« previous php.cvs (#89691) next »