xref: /PHP-8.1/ext/exif/tests/bug54002.phpt (revision bd9f4fa6)
1--TEST--
2Bug #54002 (crash on crafted tag)
3--INI--
4memory_limit=-1
5--EXTENSIONS--
6exif
7--FILE--
8<?php
9exif_read_data(__DIR__ . '/bug54002_1.jpg');
10exif_read_data(__DIR__ . '/bug54002_2.jpg');
11
12?>
13--EXPECTF--
14Warning: exif_read_data(bug54002_1.jpg): Process tag(x0205=UndefinedTag): Illegal byte_count in %sbug54002.php on line %d
15
16Warning: exif_read_data(bug54002_2.jpg): Process tag(x0205=UndefinedTag): Illegal byte_count in %sbug54002.php on line %d
17