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-- iconv_mime_decode() charset parameter length checks (CVE-2007-4840) --EXTENSIONS-..
Decoded Output download
--TEST--
iconv_mime_decode() charset parameter length checks (CVE-2007-4840)
--EXTENSIONS--
iconv
--FILE--
<?php
$a = str_repeat("/", 9000000);
var_dump(iconv_mime_decode("a", 0, $a));
?>
--EXPECTF--
Warning: iconv_mime_decode(): Encoding parameter exceeds the maximum allowed length of 64 characters in %s on line %d
bool(false)
Did this file decode correctly?
Original Code
--TEST--
iconv_mime_decode() charset parameter length checks (CVE-2007-4840)
--EXTENSIONS--
iconv
--FILE--
<?php
$a = str_repeat("/", 9000000);
var_dump(iconv_mime_decode("a", 0, $a));
?>
--EXPECTF--
Warning: iconv_mime_decode(): Encoding parameter exceeds the maximum allowed length of 64 characters in %s on line %d
bool(false)
Function Calls
str_repeat | 1 |
Stats
MD5 | c29776ff5eaad945a91de42961bfe04f |
Eval Count | 0 |
Decode Time | 133 ms |