* bug#16344: 24.3; xml-parse-region stuck on specific input, uses lots of memory
@ 2014-01-04 23:39 Christopher Wellons
2016-03-02 18:11 ` Ulf Jasper
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Wellons @ 2014-01-04 23:39 UTC (permalink / raw)
To: 16344
The function `xml-parse-region' is never returning from parsing this
specific input. It's saturing a CPU core while using huge quantities of
memory. Fortunately it can be aborted with C-g.
(with-temp-buffer
(insert "<!----><x>< /x>")
(xml-parse-region))
The trigger is a comment followed by at least one opening tag followed
by a stray less-than character. This is not valid XML due to that extra
space in the closing tag, but I'm expecting `xml-parse-region' to signal
an error in the case of invalid input rather than lock up Emacs.
Just for the sake of context, this issue was initially discovered here:
https://github.com/skeeto/elfeed/issues/17
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#16344: 24.3; xml-parse-region stuck on specific input, uses lots of memory
2014-01-04 23:39 bug#16344: 24.3; xml-parse-region stuck on specific input, uses lots of memory Christopher Wellons
@ 2016-03-02 18:11 ` Ulf Jasper
0 siblings, 0 replies; 2+ messages in thread
From: Ulf Jasper @ 2016-03-02 18:11 UTC (permalink / raw)
To: Christopher Wellons; +Cc: 16344, 16344-done
Fixed in branch emacs-25.
xml-parser will throw an error now.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-02 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-04 23:39 bug#16344: 24.3; xml-parse-region stuck on specific input, uses lots of memory Christopher Wellons
2016-03-02 18:11 ` Ulf Jasper
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).