xref: /PHP-7.2/ext/exif/tests/bug76130.phpt (revision b4e4788c)
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--SKIPIF--
10<?php
11if (!extension_loaded('exif')) die('skip exif extension not available');
12?>
13--FILE--
14<?php
15exif_read_data(__DIR__ . '/bug76130_1.jpg');
16exif_read_data(__DIR__ . '/bug76130_2.jpg');
17?>
18===DONE===
19--EXPECT--
20===DONE===
21