[ expat-Patches-548786 ] Fix attempt for bug # 548690

noreply@sourceforge.net noreply@sourceforge.net
Sat May 18 11:08:02 2002


Patches item #548786, was opened at 2002-04-25 16:30
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=310127&aid=548786&group_id=10127

Category: None
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: Karl Waclawek (kwaclaw)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix attempt for bug # 548690

Initial Comment:
Under the following switch case:
  case XML_ROLE_PARAM_ENTITY_REF:
the original code would simply do
  return XML_ERROR_UNDEFINED_ENTITY;
if the entity's name was not declared before.

I have replace this with:

  if (dtd.standalone)
    return XML_ERROR_UNDEFINED_ENTITY;
  if (defaultHandler)
    reportDefault(parser, enc, s, next);
  break;

In addition, under the following case:
  case XML_ROLE_PARAM_ENTITY_NAME:
the original code would only store the name
of the parameter entity if dtd.complete was true.
I have removed this condition.
Obviously, this could potentially break some other
code. Sofar it has been working for me.

The attached file xmlparse.c is based on
revision 1.30 and also includes patch # 548210.
A diff file is attached as well.

Karl


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

>Comment By: Karl Waclawek (kwaclaw)
Date: 2002-05-18 14:07

Message:
Logged In: YES 
user_id=290026

Closed, because this patch was made obsolete
by patch # 551599, which has been checked in.

Karl

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

Comment By: Karl Waclawek (kwaclaw)
Date: 2002-05-02 16:43

Message:
Logged In: YES 
user_id=290026

This patch has been superceded by patch # 551599

Karl

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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=310127&aid=548786&group_id=10127