[ expat-Bugs-580503 ] 1.95.2 Reuses Buffer if isFinal != 0
noreply@sourceforge.net
noreply@sourceforge.net
Fri Jul 12 02:48:05 2002
Bugs item #580503, was opened at 2002-07-12 04:47
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=580503&group_id=10127
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ari Johnson (ari_j)
Assigned to: Nobody/Anonymous (nobody)
Summary: 1.95.2 Reuses Buffer if isFinal != 0
Initial Comment:
In expat 1.95.2 (the latest version for which a
FreeBSD package is available), calling
XML_ParseBuffer() or XML_Parse() with isFinal != 0
causes the previously-parsed buffer to be parsed,
at least partially, again. For example, say that I'm
sending it chunks of 1024 bytes at a time, and the
last root tag of my XML file is <test>. Let's say
that the last buffer chunk I sent it was as follows:
--
<nodeN>value</nodeN>
<data/>
</test>
--
The next time I call XML_ParseBuffer() or XML_Parse
(), I get the full complement of startElement,
endElement, and characterData events for
<nodeN>. This occurs after I've received the
<test> endElement event. Moreover, the error
occurs whether I send len = 0 to XML_Parse*() or if I
actually send data to it.
Is this a known bug? Is it fixed in a newer version?
I couldn't find any references to it on the bug list,
open or closed; nor in the CVS log for xmlparser.c.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=580503&group_id=10127