xref: /PHP-8.1/ext/exif/tests/bug48378.phpt (revision bd9f4fa6)
1--TEST--
2Bug #48378 (Infinite recursion due to corrupt JPEG)
3--EXTENSIONS--
4exif
5--FILE--
6<?php
7exif_read_data(
8__DIR__ . "/bug48378.jpg",
9"FILE,COMPUTED,ANY_TAG"
10);
11?>
12--EXPECTF--
13Warning: exif_read_data(%s): Invalid IFD start in %s48378.php on line %d
14
15Warning: exif_read_data(%s): Error reading from file: got=x08B4(=2228) != itemlen-2=x1FFE(=8190) in %s48378.php on line %d
16
17Warning: exif_read_data(%s): Invalid JPEG file in %s48378.php on line %d
18