File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ PHP NEWS
13
13
. Fix crash when calling childNodes next() when iterator is exhausted.
14
14
(nielsdos)
15
15
16
+ - XML:
17
+ . Fixed bug GH-14124 (Segmentation fault with XML extension under certain
18
+ memory limit). (nielsdos)
19
+
16
20
09 May 2024, PHP 8.3.7
17
21
18
22
- Core:
Original file line number Diff line number Diff line change @@ -1286,6 +1286,7 @@ PHP_FUNCTION(xml_parse_into_struct)
1286
1286
parser -> level = 0 ;
1287
1287
xml_parser_free_ltags (parser );
1288
1288
parser -> ltags = safe_emalloc (XML_MAXLEVEL , sizeof (char * ), 0 );
1289
+ memset (parser -> ltags , 0 , XML_MAXLEVEL * sizeof (char * ));
1289
1290
1290
1291
XML_SetElementHandler (parser -> parser , _xml_startElementHandler , _xml_endElementHandler );
1291
1292
XML_SetCharacterDataHandler (parser -> parser , _xml_characterDataHandler );
You can’t perform that action at this time.
0 commit comments