1
0
mirror of https://github.com/GNOME/libxml2.git synced 2025-10-19 20:33:13 +08:00
Files
libxml2/test/XInclude/docs/fallback3.xml
Nick Wellnhofer 0f9817c75b Don't recurse into xi:include children in xmlXIncludeDoProcess
Otherwise, nested xi:include nodes might result in a use-after-free
if XML_PARSE_NOXINCNODE is specified.

Found with libFuzzer and ASan.
2020-08-06 14:29:33 +02:00

10 lines
291 B
XML

<a>
<xi:include href="../ents/something.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:fallback>
<xi:include href="c.xml">
<xi:fallback>There is no c.xml ... </xi:fallback>
</xi:include>
</xi:fallback>
</xi:include>
</a>