mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
14 lines
394 B
Plaintext
14 lines
394 B
Plaintext
|
--TEST--
|
||
|
iconv_strpos() charset parameter length checks (CVE-2007-4840)
|
||
|
--SKIPIF--
|
||
|
<?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$a = str_repeat("/", 9000000);
|
||
|
var_dump(iconv_strpos("a", "b", 0, $a));
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
|
||
|
Warning: iconv_strpos(): Charset parameter exceeds the maximum allowed length of %d characters in %s on line %d
|
||
|
bool(false)
|