[ expat-Bugs-584183 ] crash in builds without DTD support
noreply@sourceforge.net
noreply@sourceforge.net
Sat Jul 20 06:34:02 2002
Bugs item #584183, was opened at 2002-07-20 08:28
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=584183&group_id=10127
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mike Matsnev (haali)
Assigned to: Nobody/Anonymous (nobody)
Summary: crash in builds without DTD support
Initial Comment:
expat 1.95.4 crashes when built without dtd support.
The crash occurs when creating the parser in setContext
function. The call to lookup() there tries to access the
dtd.generalEntities table, which is not initialized when
the parser is built without dtd support. The dtdInit
function is not called when XML_DTD is not defined.
dtdInit was always called in 1.95.2 from
XML_ParserCreateMM(), but in 1.95.4 the call was moved
to parserInit(), and conditioned out when building
with XML_DTD undefined.
The attached patch fixes the issue.
----------------------------------------------------------------------
>Comment By: Karl Waclawek (kwaclaw)
Date: 2002-07-20 09:33
Message:
Logged In: YES
user_id=290026
Thanks for finding the bug.
I already applied your patch to CVS.
Expat witout XML_DTD defined is not tested well,
since that option is not widely used.
I would appreciate it if you kept testing it.
Karl
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=584183&group_id=10127