mirror of
https://github.com/php/php-src.git
synced 2024-09-30 14:26:12 +00:00
17 lines
419 B
PHP
17 lines
419 B
PHP
--TEST--
|
|
Bug #68735 fileinfo out-of-bounds memory access
|
|
--SKIPIF--
|
|
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
$test_file = dirname(__FILE__) . 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===
|