aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorUlf Jasper2016-03-02 19:03:27 +0100
committerUlf Jasper2016-03-02 19:03:27 +0100
commit8b01e6969f9e53a226d489cb721a7493fb3ad2de (patch)
tree8f3dfe1bf72a4813a3bcda17644f8c784ce2639c /test
parent100346aa226e4eacc56f390c099bb9aab585b5f4 (diff)
downloademacs-8b01e6969f9e53a226d489cb721a7493fb3ad2de.tar.gz
emacs-8b01e6969f9e53a226d489cb721a7493fb3ad2de.zip
Prevent infinite loop on not-well-formed xml. (Bug#16344)
* lisp/xml.el (xml-parse-tag-1): Prevent inifinite loop. (Bug#16344) * test/automated/xml-parse-tests.el (xml-parse-tests--bad-data): Add test cases for Bug#16344.
Diffstat (limited to 'test')
-rw-r--r--test/automated/xml-parse-tests.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/automated/xml-parse-tests.el b/test/automated/xml-parse-tests.el
index 763febb9b69..488d2c6f920 100644
--- a/test/automated/xml-parse-tests.el
+++ b/test/automated/xml-parse-tests.el
@@ -72,7 +72,12 @@
72 ;; Invalid XML names 72 ;; Invalid XML names
73 "<0foo>abc</0foo>" 73 "<0foo>abc</0foo>"
74 "<‿foo>abc</‿foo>" 74 "<‿foo>abc</‿foo>"
75 "<f¿>abc</f¿>") 75 "<f¿>abc</f¿>"
76 ;; Two root tags
77 "<a/><b></b>"
78 ;; Bug#16344
79 "<!----><x>< /x>"
80 "<a>< b/></a>")
76 "List of XML strings that should signal an error in the parser") 81 "List of XML strings that should signal an error in the parser")
77 82
78(defvar xml-parse-tests--qnames 83(defvar xml-parse-tests--qnames