Annotation of embedaddon/php/ext/exif/tests/bug54002.phpt, revision 1.1.1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>