mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
add test for dl() with long name
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
--TEST--
|
||||
dl() filename length checks (CVE-2007-4887)
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(dl(str_repeat("a", 8376757)));
|
||||
?>
|
||||
--EXPECTF--
|
||||
|
||||
Warning: dl(): File name exceeds the maximum allowed length of %d characters in %s on line %d
|
||||
bool(false)
|
||||
Reference in New Issue
Block a user