mirror of
https://github.com/php/php-src.git
synced 2025-01-12 05:54:13 +08:00
23 lines
1.0 KiB
PHP
23 lines
1.0 KiB
PHP
--TEST--
|
|
Bug #70895 null ptr deref and segfault with crafted callable
|
|
--FILE--
|
|
<?php
|
|
function m($f,$a){
|
|
return array_map($f,0);
|
|
}
|
|
|
|
echo implode(m("",m("",m("",m("",m("0000000000000000000000000000000000",("")))))));
|
|
?>
|
|
--EXPECTF--
|
|
Warning: array_map() expects parameter 1 to be a valid callback, function '0000000000000000000000000000000000' not found or invalid function name in %sbug70898.php on line %d
|
|
|
|
Warning: array_map() expects parameter 1 to be a valid callback, function '' not found or invalid function name in %sbug70898.php on line %d
|
|
|
|
Warning: array_map() expects parameter 1 to be a valid callback, function '' not found or invalid function name in %sbug70898.php on line %d
|
|
|
|
Warning: array_map() expects parameter 1 to be a valid callback, function '' not found or invalid function name in %sbug70898.php on line %d
|
|
|
|
Warning: array_map() expects parameter 1 to be a valid callback, function '' not found or invalid function name in %sbug70898.php on line %d
|
|
|
|
Warning: implode(): Argument must be an array in %sbug70898.php on line %d
|