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

From: Date: Thu, 05 Nov 2015 13:46:40 +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-89595@lists.php.net to get a copy of this message
Commit: a80545992bcedca167d11689722a9bf3f7790765 Author: Anatol Belski <ab@php.net> Thu, 5 Nov 2015 14:45:09 +0100 Parents: 5c96a91d77727a7af5604cd9be29a53e3afa2619 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a80545992bcedca167d11689722a9bf3f7790765 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 (#89595) next »