xref: /PHP-7.3/ext/exif/tests/bug77753.phpt (revision f3aefc6d)
1--TEST--
2Bug #77753 (Heap-buffer-overflow in php_ifd_get32s)
3--SKIPIF--
4<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
5--FILE--
6<?php
7var_dump(exif_read_data(__DIR__."/bug77753.tiff"));
8?>
9DONE
10--EXPECTF--
11%A
12Warning: exif_read_data(bug77753.tiff): Illegal IFD size: 0x006A > 0x0065 in %sbug77753.php on line %d
13
14Warning: exif_read_data(bug77753.tiff): Invalid TIFF file in %sbug77753.php on line %d
15bool(false)
16DONE