1
0
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:
Stanislav Malyshev
2007-09-20 18:45:03 +00:00
parent 9eb9d74932
commit 3a5dc95ae4
+10
View File
@@ -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)