diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2017-07-25 14:59:49 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2017-07-25 15:21:12 +0200 |
commit | 899a5d9f0ed13b8e32449a08a361e0de127dd961 (patch) | |
tree | 62c448c573d21f4d49c0b1a9def7e70cf4cd9d98 /test/errors | |
parent | fb56f80eeffde4b79a49667c3f0727181d57aeb3 (diff) | |
download | libxml2-899a5d9f0ed13b8e32449a08a361e0de127dd961.tar.gz |
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.
Diffstat (limited to 'test/errors')
-rw-r--r-- | test/errors/759579.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/errors/759579.xml b/test/errors/759579.xml new file mode 100644 index 00000000..7fadd702 --- /dev/null +++ b/test/errors/759579.xml @@ -0,0 +1,11 @@ +<!DOCTYPE doc [ + <!ENTITY % z ' + %z; %z; %z; %z; %z; + %z; %z; %z; %z; %z; + %z; %z; %z; %z; %z; + %z; %z; %z; %z; %z; + %z; %z; %z; %z; %z; + '> + %z; +]> +<doc/> |