mirror of
https://github.com/php/php-src.git
synced 2025-01-15 16:24:37 +08:00
MFB one more test
This commit is contained in:
parent
5fce3f4e02
commit
16059f2b18
12
ext/iconv/tests/ob_iconv_handler-charset-length-cve-2007-4840.phpt
Executable file
12
ext/iconv/tests/ob_iconv_handler-charset-length-cve-2007-4840.phpt
Executable file
@ -0,0 +1,12 @@
|
||||
--TEST--
|
||||
ob_iconv_handler() charset parameter length checks (CVE-2007-4840)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
ini_set("iconv.output_encoding", str_repeat("a", 9000000));
|
||||
ob_start("ob_iconv_handler");
|
||||
print "done";
|
||||
?>
|
||||
--EXPECT--
|
||||
done
|
Loading…
Reference in New Issue
Block a user