mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Based on analysis by Ilija: https://github.com/php/php-src/issues/15179#issuecomment-2261546902 * Apply suggestions from code review Closes GH-15206. Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
19 lines
406 B
PHP
19 lines
406 B
PHP
--TEST--
|
|
GH-15179 (Segmentation fault (null pointer dereference) in ext/standard/url_scanner_ex.re)
|
|
--CREDITS--
|
|
YuanchengJiang
|
|
--INI--
|
|
memory_limit=64M
|
|
--SKIPIF--
|
|
<?php
|
|
if (getenv("USE_ZEND_ALLOC") === "0") die("skip requires ZendMM");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$var = str_repeat('a', 20 * 1024 * 1024);
|
|
|
|
output_add_rewrite_var($var, $var);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Allowed memory size of %d bytes exhausted %s
|