[Expat-bugs] [ expat-Bugs-488899 ] Bad pointer from characterData handler

SourceForge.net noreply at sourceforge.net
Mon Apr 7 11:38:48 EDT 2003


Bugs item #488899, was opened at 2001-12-04 06:28
Message generated for change (Comment added) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=488899&group_id=10127

Category: None
Group: Platform Specific
Status: Closed
Resolution: Remind
Priority: 5
Submitted By: Paul Plummer (plummpj)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Bad pointer from characterData handler

Initial Comment:
Expat frequently returns bad data pointers to my 
handler for XML_SetCharacterDataHandler. I have expat 
V 1.95.2 installed on a SUN w Solaris 2.5.1.

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

Comment By: Nobody/Anonymous (nobody)
Date: 2003-04-07 10:38

Message:
Logged In: NO 

Well, I noticed also that depending on the size of the
buffer the parser is using, the CharacterDataHandler routine
is given just a portion of the data between the start and
end tags because it is split across two buffers of xml from
the stream (a file in my case). This causes the
CharacterDataHandler to then be called again with the
remainder of the text data. Shouldn't expat put the two or
more pieces together as one string and then call the handler?

Respectfully,
Bill Lynn
blynn at jtls.nps.navy.mil

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

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-08-27 16:46

Message:
Logged In: YES 
user_id=3066

I just tried this again using the CVS version of Expat and
the test for a "bad pointer" disabled, and saw no ill
effects.  Please test with the CVS version of Expat if
possible.  Be sure to follow the instructions in the README
to build the XML_UNICODE version of the library.

I'll ignore this until you're able to confirm that there's
still a problem in a more current version of Expat (with a
strong preference for the CVS version).

Following up to this report on SourceForge will add this
back to my list.

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

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-05-17 09:30

Message:
Logged In: YES 
user_id=3066

Your test for a "bad pointer" in Element::copyData() looks
strange to me, but there's definately something weird going
on.  I'll add it to my plate.

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

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



More information about the Expat-bugs mailing list