mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
bd9f4fa676
For rationale, see https://github.com/php/php-src/pull/6787 Make extension checks lowercase, add a special case for opcache that has internal name not matching .so filename. Extensions migrated in part 2: * dom * exif * fileinfo * ffi
15 lines
460 B
PHP
15 lines
460 B
PHP
--TEST--
|
|
Bug #71527 Buffer over-write in finfo_open with malformed magic file
|
|
--EXTENSIONS--
|
|
fileinfo
|
|
--ENV--
|
|
USE_ZEND_ALLOC=0
|
|
--FILE--
|
|
<?php
|
|
$finfo = finfo_open(FILEINFO_NONE, __DIR__ . DIRECTORY_SEPARATOR . "bug71527私はガラスを食べられます.magic");
|
|
var_dump($finfo);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: finfo_open(): Failed to load magic database at "%sbug71527私はガラスを食べられます.magic" in %sbug71527-mb.php on line %d
|
|
bool(false)
|