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