com php-src: Undefined values may lead to big allocation: sapi/phpdbg/phpdbg_list.c

From: Date: Tue, 21 Jul 2015 22:02:59 +0000
Subject: com php-src: Undefined values may lead to big allocation: sapi/phpdbg/phpdbg_list.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88106@lists.php.net to get a copy of this message
Commit: 262d32634b33d85e978a66e87f43d6d12df9e23c Author: Bob Weinand <bobwei9@hotmail.com> Wed, 22 Jul 2015 00:02:40 +0200 Parents: 7c661bd30408c4acbd623ee310e468b4e2bb97bb Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=262d32634b33d85e978a66e87f43d6d12df9e23c Log: Undefined values may lead to big allocation Changed paths: M sapi/phpdbg/phpdbg_list.c Diff: diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c index 38804d5..7b1bc87 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;

« previous php.cvs (#88106) next »