1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/standard/tests/strings/oss_fuzz_57392.phpt
2024-09-13 15:07:26 +01:00

19 lines
279 B
PHP

--TEST--
oss-fuzz #57392: Buffer-overflow in php_fgetcsv() with \0 delimiter and enclosure
--FILE--
<?php
var_dump(str_getcsv(
"aaaaaaaaaaaa\0 ",
"\0",
"\0",
escape: '',
));
?>
--EXPECT--
array(2) {
[0]=>
string(12) "aaaaaaaaaaaa"
[1]=>
string(2) " "
}