1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00
libxml2/result/XInclude/fallback5.xml
Nick Wellnhofer 1abf2967f9 Fix exponential runtime and memory in xi:fallback processing
When creating XML_XINCLUDE_START nodes, the children of the original
xi:include node must be freed, otherwise fallback content is copied
twice, doubling runtime and memory consumption for each nested
xi:fallback/xi:include pair.

Found with libFuzzer.
2020-08-07 19:59:07 +02:00

52 lines
1007 B
XML

<?xml version="1.0"?>
<a>
<elem/>
<elem/>
<elem/>
<elem/>
<elem/>
<elem/>
<elem/>
<elem/>
<elem/>
<elem/>
<elem/>
<elem/>
<elem/>
<elem/>
<elem/>
<elem/>
</a>