commit | bdd66182ef53fe1f7209ab6535fda56366bd7ac9 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@redhat.com> | Mon May 23 12:27:58 2016 +0800 |
committer | Daniel Veillard <veillard@redhat.com> | Mon May 23 15:01:07 2016 +0800 |
tree | 8544e4dd70e5e4dabeddfe1c5ac83bdb212ac7ca | |
parent | 0bcd05c5cd83dec3406c8f68b769b1d610c72f76 [diff] |
Avoid building recursive entities For https://bugzilla.gnome.org/show_bug.cgi?id=762100 When we detect a recusive entity we should really not build the associated data, moreover if someone bypass libxml2 fatal errors and still tries to serialize a broken entity make sure we don't risk to get ito a recursion * parser.c: xmlParserEntityCheck() don't build if entity loop were found and remove the associated text content * tree.c: xmlStringGetNodeList() avoid a potential recursion