mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
Merge branch 'PHP-7.2'
* PHP-7.2: fix test fix NULL deref
This commit is contained in:
commit
f30506c8ff
2 changed files with 3 additions and 3 deletions
|
@ -1973,11 +1973,11 @@ static void exif_error_docref(const char *docref EXIFERR_DC, const image_info_ty
|
|||
char *buf;
|
||||
|
||||
spprintf(&buf, 0, "%s(%d): %s", _file, _line, format);
|
||||
php_verror(docref, ImageInfo->FileName?ImageInfo->FileName:"", type, buf, args);
|
||||
php_verror(docref, ImageInfo && ImageInfo->FileName ? ImageInfo->FileName:"", type, buf, args);
|
||||
efree(buf);
|
||||
}
|
||||
#else
|
||||
php_verror(docref, ImageInfo->FileName?ImageInfo->FileName:"", type, format, args);
|
||||
php_verror(docref, ImageInfo && ImageInfo->FileName ? ImageInfo->FileName:"", type, format, args);
|
||||
#endif
|
||||
va_end(args);
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ output_handler=
|
|||
zlib.output_compression=0
|
||||
--FILE--
|
||||
<?php
|
||||
$infile = dirname(__FILE__).'/bug73115.JPG';
|
||||
$infile = dirname(__FILE__).'/bug73115.jpg';
|
||||
var_dump(count(exif_read_data($infile)));
|
||||
?>
|
||||
===DONE===
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue