xref: /PHP-8.2/ext/exif/tests/bug76130.phpt (revision bd9f4fa6)
1--TEST--
2Bug #76130 (Heap Buffer Overflow (READ: 1786) in exif_iif_add_value)
3--DESCRIPTION--
4This test is meant to exhibit memory issues with the `-m` option. Since a lot of
5notices and warnings are to be expected anyway, we suppress these, since the are
6not relevant for this test.
7--INI--
8error_reporting=E_ALL & ~E_WARNING & ~E_NOTICE
9--EXTENSIONS--
10exif
11--FILE--
12<?php
13exif_read_data(__DIR__ . '/bug76130_1.jpg');
14exif_read_data(__DIR__ . '/bug76130_2.jpg');
15?>
16===DONE===
17--EXPECT--
18===DONE===
19