From: Bob Weinand Date: Tue, 21 Jul 2015 22:02:40 +0000 (+0200) Subject: Undefined values may lead to big allocation X-Git-Tag: php-7.0.0beta3~5^2~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=262d32634b33d85e978a66e87f43d6d12df9e23c;p=php Undefined values may lead to big allocation --- diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c index 38804d551e..7b1bc8783b 100644 --- a/sapi/phpdbg/phpdbg_list.c +++ b/sapi/phpdbg/phpdbg_list.c @@ -240,7 +240,9 @@ zend_op_array *phpdbg_compile_file(zend_file_handle *file, int type) { char *bufptr, *endptr; char resolved_path_buf[MAXPATHLEN]; - zend_stream_fixup(file, &data.buf, &data.len); + if (zend_stream_fixup(file, &data.buf, &data.len) == FAILURE) { + return NULL; + } data.filename = filename; data.line[0] = 0;