Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #71527 Buffer over-write in finfo_open with malformed magic file --EXTENSIONS..

Decoded Output download

--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.php on line %d
bool(false)

Did this file decode correctly?

Original Code

--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.php on line %d
bool(false)

Function Calls

None

Variables

None

Stats

MD5 06bdc0eb2bd19246dee45933d7d43a28
Eval Count 0
Decode Time 104 ms