xref: /PHP-5.6/ext/exif/tests/bug54002.phpt (revision 1364742b)
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_2.jpeg): Process tag(x0205=UndefinedTa): Illegal byte_count in %sbug54002.php on line %d