[ expat-Bugs-584832 ] incorrect handling of internal entities
noreply@sourceforge.net
noreply@sourceforge.net
Mon Jul 22 03:29:04 2002
Bugs item #584832, was opened at 2002-07-22 14:28
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=584832&group_id=10127
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mike Matsnev (haali)
Assigned to: Nobody/Anonymous (nobody)
Summary: incorrect handling of internal entities
Initial Comment:
expat-1.95.4
Internal entities defined in the DTD are not properly
expanded in attribute values when an external encoding
handler is used.
The cause of the problem is that a wrong pool is
cleared in processXmlDecl() and the encoding name
remains in the pool. When parsing the document an
entity name is appended to the encoding name already in
the pool, and not surprisingly the resulting string is
not found in the entities table. The attached patch
fixes the bug.
Also this bug might cause trouble in other places,
where the temp2pool is used.
/Mike
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=584832&group_id=10127