Re: [xml] Problem with testSax on SunOS

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Jun 14 1999 - 19:50:47 EDT


On Mon, Jun 14, 1999 at 04:39:50PM -0500, Bacon, Patrick wrote:
>
> 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);
> }

  yep, agreed, it was (again) already fixed in my own CVS base at
http://dev.w3.org/ in th XML directory, but I still didn't found the
time to do the update of the gnome CVS,

  sorry about that,

Daniel

-- 
	    [Yes, I have moved back to France !]
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux, WWW, rpmfind,
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | rpm2html, XML,
http://www.w3.org/People/W3Cpeople.html#Veillard | badminton, and Kaffe.
----
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


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:38 EDT