123456789101112 |
- --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)
|