* xml.el: Protect parser against XML bombs.
commita76e6535dc91d65de27f194861a5aa21e9b26365
authorChong Yidong <cyd@gnu.org>
Tue, 3 Jul 2012 05:28:42 +0000 (3 13:28 +0800)
committerChong Yidong <cyd@gnu.org>
Tue, 3 Jul 2012 05:28:42 +0000 (3 13:28 +0800)
tree0ab4f191fd1a5e6ed1e2582be7f86aa57638440b
parent36429c89cbd7282a7614a358e5edb4d37f4a3f47
* xml.el: Protect parser against XML bombs.
(xml-entity-expansion-limit): New variable.
(xml-parse-string, xml-substitute-special): Use it.
(xml-parse-dtd): Avoid infloop if the DTD is not terminated.

* test/automated/xml-parse-tests.el: Update testcases.
lisp/ChangeLog
lisp/xml.el
test/ChangeLog
test/automated/xml-parse-tests.el