xref: /PHP-5.6/ext/exif/tests/bug76423.phpt (revision 1baeae42)
1--TEST--
2Bug #76423 (Int Overflow lead to Heap OverFlow in exif_thumbnail_extract of exif.c)
3--SKIPIF--
4<?php
5if (!extension_loaded('exif')) die('skip exif extension not available');
6?>
7--FILE--
8<?php
9exif_read_data(__DIR__ . '/bug76423.jpg', 0, true, true);
10?>
11===DONE===
12--EXPECTF--
13
14Warning: exif_read_data(%s.jpg): Thumbnail goes IFD boundary or end of file reached in %s on line %d
15
16Warning: exif_read_data(%s.jpg): File structure corrupted in %s on line %d
17
18Warning: exif_read_data(%s.jpg): Invalid JPEG file in %s on line %d
19===DONE===
20