1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-14 13:58:27 +03:00
libxml2/test/errors/759579.xml
Nick Wellnhofer 899a5d9f0e Detect infinite recursion in parameter entities
When expanding a parameter entity in a DTD, infinite recursion could
lead to an infinite loop or memory exhaustion.

Thanks to Wei Lei for the first of many reports.

Fixes bug 759579.
2017-07-25 15:21:12 +02:00

12 lines
300 B
XML

<!DOCTYPE doc [
<!ENTITY % z '
&#37;z; &#37;z; &#37;z; &#37;z; &#37;z;
&#37;z; &#37;z; &#37;z; &#37;z; &#37;z;
&#37;z; &#37;z; &#37;z; &#37;z; &#37;z;
&#37;z; &#37;z; &#37;z; &#37;z; &#37;z;
&#37;z; &#37;z; &#37;z; &#37;z; &#37;z;
'>
%z;
]>
<doc/>