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 #72306 (Heap overflow through proc_open and $env parameter) --FILE-- <?php cl..

Decoded Output download

--TEST--
Bug #72306 (Heap overflow through proc_open and $env parameter)
--FILE--
<?php
class moo {
    function __construct() { $this->a = 0; }
    function __toString() { return $this->a++ ? str_repeat("a", 0x8000) : "a"; }
}

$env = array('some_option' => new moo());
$pipes = array();
$description = array(
   0 => array("pipe", "r"),
   1 => array("pipe", "w"),
   2 => array("pipe", "r")
);

$process = proc_open('nothing', $description, $pipes, NULL, $env);

?>
okey
--EXPECT--
okey

Did this file decode correctly?

Original Code

--TEST--
Bug #72306 (Heap overflow through proc_open and $env parameter)
--FILE--
<?php
class moo {
    function __construct() { $this->a = 0; }
    function __toString() { return $this->a++ ? str_repeat("a", 0x8000) : "a"; }
}

$env = array('some_option' => new moo());
$pipes = array();
$description = array(
   0 => array("pipe", "r"),
   1 => array("pipe", "w"),
   2 => array("pipe", "r")
);

$process = proc_open('nothing', $description, $pipes, NULL, $env);

?>
okey
--EXPECT--
okey

Function Calls

None

Variables

None

Stats

MD5 715998cfdc0c95ecb9d4adaff5a9d335
Eval Count 0
Decode Time 105 ms