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-- PHP bug #77143: Heap Buffer Overflow (READ: 4) in phar_parse_pharfile --INI-- pha..

Decoded Output download

--TEST--
PHP bug #77143: Heap Buffer Overflow (READ: 4) in phar_parse_pharfile
--INI--
phar.readonly=0
--EXTENSIONS--
phar
--FILE--
<?php
chdir(__DIR__);
try {
var_dump(new Phar('bug77143.phar',0,'project.phar'));
echo "OK
";
} catch(UnexpectedValueException $e) {
    echo $e->getMessage();
}
?>
--EXPECTF--
internal corruption of phar "%sbug77143.phar" (truncated manifest header)

Did this file decode correctly?

Original Code

--TEST--
PHP bug #77143: Heap Buffer Overflow (READ: 4) in phar_parse_pharfile
--INI--
phar.readonly=0
--EXTENSIONS--
phar
--FILE--
<?php
chdir(__DIR__);
try {
var_dump(new Phar('bug77143.phar',0,'project.phar'));
echo "OK\n";
} catch(UnexpectedValueException $e) {
    echo $e->getMessage();
}
?>
--EXPECTF--
internal corruption of phar "%sbug77143.phar" (truncated manifest header)

Function Calls

None

Variables

None

Stats

MD5 bbe8db7e76b90ccaf8ce32e749a89829
Eval Count 0
Decode Time 85 ms