php-src/ext/exif/tests/bug68113.phpt

18 lines
414 B
Plaintext
Raw Normal View History

--TEST--
Bug #68113 (Heap corruption in exif_thumbnail())
--SKIPIF--
<?php
extension_loaded("exif") or die("skip need exif");
?>
--FILE--
<?php
var_dump(exif_thumbnail(__DIR__."/bug68113.jpg"));
?>
Done
--EXPECTF--
2014-11-24 15:14:17 +00:00
Warning: exif_thumbnail(bug68113.jpg): File structure corrupted in %s%ebug68113.php on line 2
2014-11-24 15:14:17 +00:00
Warning: exif_thumbnail(bug68113.jpg): Invalid JPEG file in %s%ebug68113.php on line 2
bool(false)
2014-11-24 15:14:17 +00:00
Done