xref: /PHP-7.4/ext/exif/tests/bug77564/bug77564.phpt (revision 26dfce7f)
1--TEST--
2Bug 77564 (Memory leak in exif_process_IFD_TAG)
3--SKIPIF--
4<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
5--FILE--
6<?php
7var_dump(exif_read_data(__DIR__ . '/bug77564.jpg'));
8?>
9DONE
10--EXPECTF--
11
12Warning: exif_read_data(bug77564.jpg): Illegal IFD offset in %sbug77564.php on line %d
13
14Warning: exif_read_data(bug77564.jpg): File structure corrupted in %sbug77564.php on line %d
15
16Warning: exif_read_data(bug77564.jpg): Invalid JPEG file in %sbug77564.php on line %d
17bool(false)
18DONE
19