xref: /PHP-5.4/ext/exif/tests/bug54002.phpt (revision 409c5a9c)
1--TEST--
2Bug #54002 (crash on crafted tag)
3--INI--
4memory_limit=-1
5--SKIPIF--
6<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
7--FILE--
8<?php
9exif_read_data(__DIR__ . '/bug54002_1.jpeg');
10exif_read_data(__DIR__ . '/bug54002_2.jpeg');
11
12?>
13--EXPECTF--
14Warning: exif_read_data(bug54002_1.jpeg): Process tag(x0205=UndefinedTa): Illegal byte_count in %sbug54002.php on line %d
15
16Warning: exif_read_data(bug54002_1.jpeg): Process tag(xA000=FlashPixVer): Illegal pointer offset(%s) in %sbug54002.php on line %d
17
18Warning: exif_read_data(bug54002_2.jpeg): Process tag(x0205=UndefinedTa): Illegal byte_count in %sbug54002.php on line %d
19
20Warning: exif_read_data(bug54002_2.jpeg): Process tag(xA000=FlashPixVer): Illegal pointer offset(%s) in %sbug54002.php on line %d
21