[ expat-Bugs-584183 ] crash in builds without DTD support

noreply@sourceforge.net noreply@sourceforge.net
Sat Jul 20 05:29:02 2002


Bugs item #584183, was opened at 2002-07-20 16: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.


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

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