diff options
author | Anatol Belski <ab@php.net> | 2015-11-05 14:45:09 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-11-05 14:46:40 +0100 |
commit | a80545992bcedca167d11689722a9bf3f7790765 (patch) | |
tree | b16b43352b51ed067136073efb9081fdc80ebd7f | |
parent | 5c96a91d77727a7af5604cd9be29a53e3afa2619 (diff) | |
download | php-git-a80545992bcedca167d11689722a9bf3f7790765.tar.gz |
update the actual sql parser file for #70861
-rw-r--r-- | ext/pdo/pdo_sql_parser.re | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/pdo/pdo_sql_parser.re b/ext/pdo/pdo_sql_parser.re index 9922e03690..96c131fe96 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 */ |