xref: /PHP-7.4/ext/exif/tests/bug68113-mb.phpt (revision 3d3f11ed)
1--TEST--
2Bug #68113 (Heap corruption in exif_thumbnail())
3--SKIPIF--
4<?php
5extension_loaded("exif") or die("skip need exif");
6?>
7--FILE--
8<?php
9var_dump(exif_thumbnail(__DIR__."/bug68113私はガラスを食べられます.jpg"));
10?>
11Done
12--EXPECTF--
13Warning: exif_thumbnail(bug68113私はガラスを食べられます.jpg): File structure corrupted in %s%ebug68113-mb.php on line 2
14
15Warning: exif_thumbnail(bug68113私はガラスを食べられます.jpg): Invalid JPEG file in %s%ebug68113-mb.php on line 2
16bool(false)
17Done
18