xref: /PHP-7.1/ext/fileinfo/tests/bug68735.phpt (revision 332bbfa2)
1--TEST--
2Bug #68735 fileinfo out-of-bounds memory access
3--SKIPIF--
4<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
5--FILE--
6<?php
7	$test_file = dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug68735.jpg";
8	$f = new finfo;
9
10	var_dump($f->file($test_file));
11
12?>
13===DONE===
14--EXPECTF--
15string(%d) "JPEG image data, JFIF standard 1.01, resolution (DPI), density 180x52, segment length 16, comment: "%S""
16===DONE===
17