]> granicus.if.org Git - php/commitdiff
Undefined values may lead to big allocation
authorBob Weinand <bobwei9@hotmail.com>
Tue, 21 Jul 2015 22:02:40 +0000 (00:02 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Tue, 21 Jul 2015 22:02:59 +0000 (00:02 +0200)
sapi/phpdbg/phpdbg_list.c

index 38804d551e77a75aeb64b94f7ea2369b43a91e98..7b1bc8783b83103e0b03b92d3664b50d094182af 100644 (file)
@@ -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;