mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.4'
* PHP-8.4: Fix OSS-Fuzz #428983568 and #428760800
This commit is contained in:
14
Zend/tests/zend_ini/oss_fuzz_428983568.phpt
Normal file
14
Zend/tests/zend_ini/oss_fuzz_428983568.phpt
Normal file
@@ -0,0 +1,14 @@
|
||||
--TEST--
|
||||
OSS-Fuzz #428983568
|
||||
--FILE--
|
||||
<?php
|
||||
$ini = <<<INI
|
||||
[\${zz:-x
|
||||
|
||||
INI;
|
||||
var_dump(parse_ini_string($ini));
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: syntax error, unexpected end of file, expecting '}' in Unknown on line 1
|
||||
in %s on line %d
|
||||
bool(false)
|
||||
@@ -353,7 +353,7 @@ static void normalize_value(zval *zv)
|
||||
%left '|' '&' '^'
|
||||
%precedence '~' '!'
|
||||
|
||||
%destructor { zval_ini_dtor(&$$); } TC_RAW TC_CONSTANT TC_NUMBER TC_STRING TC_WHITESPACE TC_LABEL TC_OFFSET TC_VARNAME BOOL_TRUE BOOL_FALSE NULL_NULL cfg_var_ref constant_literal constant_string encapsed_list expr option_offset section_string_or_value string_or_value var_string_list var_string_list_section
|
||||
%destructor { zval_ini_dtor(&$$); } TC_RAW TC_CONSTANT TC_NUMBER TC_STRING TC_WHITESPACE TC_LABEL TC_OFFSET TC_VARNAME BOOL_TRUE BOOL_FALSE NULL_NULL cfg_var_ref constant_literal constant_string encapsed_list expr fallback option_offset section_string_or_value string_or_value var_string_list var_string_list_section
|
||||
|
||||
%%
|
||||
|
||||
|
||||
Reference in New Issue
Block a user