mirror of
https://github.com/php/php-src.git
synced 2025-08-20 17:34:35 +02:00
add test for dl() with long name
This commit is contained in:
parent
30dc58671d
commit
cfd8f6d775
1 changed files with 10 additions and 0 deletions
10
ext/standard/tests/general_functions/dl-cve-2007-4887.phpt
Executable file
10
ext/standard/tests/general_functions/dl-cve-2007-4887.phpt
Executable 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)
|
Loading…
Add table
Add a link
Reference in a new issue