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-- Phar: bug #69453: Memory Corruption in phar_parse_tarfile when entry filename sta..

Decoded Output download

--TEST--
Phar: bug #69453: Memory Corruption in phar_parse_tarfile when entry filename starts with null
--EXTENSIONS--
phar
--FILE--
<?php
$fname = __DIR__ . '/bug69453.tar.phar';
try {
$r = new Phar($fname, 0);
} catch(UnexpectedValueException $e) {
    echo $e;
}
?>
--EXPECTF--
UnexpectedValueException: phar error: "%s%ebug69453.tar.phar" is a corrupted tar file (checksum mismatch of file "") in %s:%d
Stack trace:
#0 %s%ebug69453.php(%d): Phar->__construct('%s', 0)
#1 {main}

Did this file decode correctly?

Original Code

--TEST--
Phar: bug #69453: Memory Corruption in phar_parse_tarfile when entry filename starts with null
--EXTENSIONS--
phar
--FILE--
<?php
$fname = __DIR__ . '/bug69453.tar.phar';
try {
$r = new Phar($fname, 0);
} catch(UnexpectedValueException $e) {
    echo $e;
}
?>
--EXPECTF--
UnexpectedValueException: phar error: "%s%ebug69453.tar.phar" is a corrupted tar file (checksum mismatch of file "") in %s:%d
Stack trace:
#0 %s%ebug69453.php(%d): Phar->__construct('%s', 0)
#1 {main}

Function Calls

None

Variables

None

Stats

MD5 cb4f6677d736a65c274bca6d2a43c48a
Eval Count 0
Decode Time 89 ms