Annotation of embedaddon/php/ext/exif/tests/bug60150.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: Bug #60150 (Integer overflow during the parsing of invalid exif header)
3: --SKIPIF--
4: <?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
5: --INI--
6: output_handler=
7: zlib.output_compression=0
8: --FILE--
9: <?php
10: $infile = dirname(__FILE__).'/bug60150.jpg';
11: var_dump(exif_read_data($infile));
12: ?>
13: ===DONE===
14: --EXPECTF--
1.1.1.2 ! misho 15: Warning: exif_read_data(bug60150.jpg): Process tag(x9003=DateTimeOri): Illegal pointer offset(%s) in %s on line %d
1.1 misho 16:
17: Warning: exif_read_data(bug60150.jpg): Error reading from file: got=x%x(=%d) != itemlen-%d=x%x(=%d) in %s on line %d
18:
19: Warning: exif_read_data(bug60150.jpg): Invalid JPEG file in %s on line %d
20: bool(false)
21: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>