mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
0fa13028cb
This issue was recently introduced in c739023a50
,
when the restriction that components>0 has been relaxed. We now need
to make sure that any tags that expect at least one component check
that this is the case.
15 lines
486 B
PHP
15 lines
486 B
PHP
--TEST--
|
|
Bug #73737 (Crash when parsing a tag format)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
|
|
--FILE--
|
|
<?php
|
|
$exif = exif_thumbnail(__DIR__ . '/bug73737.tiff');
|
|
var_dump($exif);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: exif_thumbnail(bug73737.tiff): Process tag(x0100=ImageWidth ): Cannot be empty in %s on line %d
|
|
|
|
Warning: exif_thumbnail(bug73737.tiff): Error in TIFF: filesize(x0030) less than start of IFD dir(x10102) in %s line %d
|
|
bool(false)
|