xref: /PHP-8.3/ext/exif/tests/bug77564/bug77564.phpt (revision bd9f4fa6)
1--TEST--
2Bug 77564 (Memory leak in exif_process_IFD_TAG)
3--EXTENSIONS--
4exif
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