[ expat-Bugs-584832 ] incorrect handling of internal entities

noreply@sourceforge.net noreply@sourceforge.net
Mon Jul 22 06:31:09 2002


Bugs item #584832, was opened at 2002-07-22 06: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: Accepted
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

----------------------------------------------------------------------

>Comment By: Karl Waclawek (kwaclaw)
Date: 2002-07-22 09:30

Message:
Logged In: YES 
user_id=290026

I think your assessment is correct. 
Thank you for your bug report.
Could you please supply a test case for that - obviously
you have come across the bug in a specific case.

I already applied the patch. Leaving this report open
until test case (hopefully :-)) supplied.

Karl

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=584832&group_id=10127