xref: /PHP-8.1/ext/exif/tests/bug76423.phpt (revision bd9f4fa6)
1--TEST--
2Bug #76423 (Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c)
3--EXTENSIONS--
4exif
5--FILE--
6<?php
7exif_read_data(__DIR__ . '/bug76423.jpg', 0, true, true);
8?>
9--EXPECTF--
10Warning: exif_read_data(%s.jpg): Thumbnail goes IFD boundary or end of file reached in %s on line %d
11
12Warning: exif_read_data(%s.jpg): File structure corrupted in %s on line %d
13
14Warning: exif_read_data(%s.jpg): Invalid JPEG file in %s on line %d
15