diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-07-22 00:02:40 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-07-22 00:02:59 +0200 |
commit | 262d32634b33d85e978a66e87f43d6d12df9e23c (patch) | |
tree | 3eab29b2bee329b7db1ef5da74fd4e2aca902c7e | |
parent | 7c661bd30408c4acbd623ee310e468b4e2bb97bb (diff) | |
download | php-git-262d32634b33d85e978a66e87f43d6d12df9e23c.tar.gz |
Undefined values may lead to big allocation
-rw-r--r-- | sapi/phpdbg/phpdbg_list.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |