mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +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;
|
char *buf;
|
||||||
|
|
||||||
spprintf(&buf, 0, "%s(%d): %s", _file, _line, format);
|
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);
|
efree(buf);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
php_verror(docref, ImageInfo->FileName?ImageInfo->FileName:"", type, format, args);
|
php_verror(docref, ImageInfo && ImageInfo->FileName ? ImageInfo->FileName:"", type, format, args);
|
||||||
#endif
|
#endif
|
||||||
va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ output_handler=
|
||||||
zlib.output_compression=0
|
zlib.output_compression=0
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
$infile = dirname(__FILE__).'/bug73115.JPG';
|
$infile = dirname(__FILE__).'/bug73115.jpg';
|
||||||
var_dump(count(exif_read_data($infile)));
|
var_dump(count(exif_read_data($infile)));
|
||||||
?>
|
?>
|
||||||
===DONE===
|
===DONE===
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue