xref: /PHP-8.0/ext/exif/tests/bug68113.phpt (revision 09f2355e)
1--TEST--
2Bug #68113 (Heap corruption in exif_thumbnail())
3--SKIPIF--
4<?php
5extension_loaded("exif") or die("skip need exif");
6?>
7--FILE--
8<?php
9var_dump(exif_thumbnail(__DIR__."/bug68113.jpg"));
10?>
11Done
12--EXPECTF--
13Warning: exif_thumbnail(bug68113.jpg): File structure corrupted in %s%ebug68113.php on line 2
14
15Warning: exif_thumbnail(bug68113.jpg): Invalid JPEG file in %s%ebug68113.php on line 2
16bool(false)
17Done
18