summaryrefslogtreecommitdiff
path: root/ext/fileinfo/tests/bug68735.phpt
blob: d43ceca40bf31bf36ebd057bbac702f1a8ec4544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #68735 fileinfo out-of-bounds memory access
--SKIPIF--
<?php require_once(__DIR__ . '/skipif.inc'); ?>
--FILE--
<?php
	$test_file = __DIR__ . DIRECTORY_SEPARATOR . "bug68735.jpg";
	$f = new finfo;

	var_dump($f->file($test_file));

?>
===DONE===
--EXPECTF--
string(%d) "JPEG image data, JFIF standard 1.01, resolution (DPI), density 180x52, segment length 16, comment: "%S""
===DONE===