mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Undefined values may lead to big allocation
This commit is contained in:
parent
7c661bd304
commit
262d32634b
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue