GNU bug report logs - #7172
emacs 23.2; xml.el: xml-parse-file hangs when DOCTYPE element names contain _ (underscore)

Previous Next

Package: emacs;

Reported by: Jose Marino <marinoj <at> astro.ufl.edu>

Date: Thu, 7 Oct 2010 17:05:02 UTC

Severity: normal

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Chong Yidong <cyd <at> gnu.org>
To: Jose Marino <marinoj <at> astro.ufl.edu>
Cc: 7172 <at> debbugs.gnu.org
Subject: bug#7172: emacs 23.2; xml.el: xml-parse-file hangs when DOCTYPE element names contain _ (underscore)
Date: Sun, 01 Jul 2012 18:59:32 +0800
Jose Marino <marinoj <at> astro.ufl.edu> writes:

> In a DOCTYPE construction, whenever there's an ELEMENT name with an
> underscore in its name, function xml-parse-file makes emacs become
> unresponsive and use 100% cpu. Emacs recovers nicely with C-g but no
> error is printed.
>
> $ cat example-bad.xml
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE EXAMPLE [
>    <!ELEMENT EXAM_PLE EMPTY>
> ]>
> <EXAM_PLE>
> </EXAM_PLE>

This is fixed in trunk.  Thanks for the bug report.




This bug report was last modified 12 years and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.