From: Bacon, Patrick (patrickb@crt.com)
Date: Mon Jun 14 1999 - 17:39:50 EDT
The testSAX program seg faults when run on SunOS 5.6. The problem occurs in
the endElementDebug(). It appears that in the example XML the following tag:
<Z:Copyright-Owner/>
causes endElementDebug to be called with name being null. Apparently
passing null to fprintf causes a seg fault on SunOS 5.6. Obviously testing
for null before calling fprintf will fix the problem... no big deal since it
is just a test program, but I thought you should know.
For reference:
/**
* endElementDebug:
* @ctxt: An XML parser context
* @name: The element name
*
* called when the end of an element has been detected.
*/
void
endElementDebug(xmlParserCtxtPtr ctxt, const CHAR *name)
{
fprintf(stdout, "SAX.endElement(%s)\n", (char *) name);
}
Regards,
Patrick Bacon
---- Message from the list xml@rufus.w3.org Archived at : http://rufus.w3.org/veillard/XML/messages to unsubscribe: echo "unsubscribe xml" | mail majordomo@rufus.w3.org
This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:38 EDT