xref: /PHP-8.1/ext/exif/tests/bug77563.phpt (revision bd9f4fa6)
1--TEST--
2Bug 77563 (Uninitialized read in exif_process_IFD_in_MAKERNOTE)
3--EXTENSIONS--
4exif
5--FILE--
6<?php
7$s = exif_thumbnail(__DIR__."/bug77563.jpg");
8?>
9DONE
10--EXPECTF--
11Warning: exif_thumbnail(bug77563.jpg): IFD data too short: 0x0009 offset 0x0008 in %s%ebug77563.php on line %d
12
13Warning: exif_thumbnail(bug77563.jpg): Illegal IFD offset in %s%ebug77563.php on line %d
14
15Warning: exif_thumbnail(bug77563.jpg): File structure corrupted in %s%ebug77563.php on line %d
16
17Warning: exif_thumbnail(bug77563.jpg): Invalid JPEG file in %s%ebug77563.php on line %d
18DONE
19