Merge branch 'PHP-7.2'

* PHP-7.2:
  fix test
  fix NULL deref
This commit is contained in:
Anatol Belski 2017-08-01 12:02:16 +02:00
commit f30506c8ff
2 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -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===