[ expat-Bugs-1090885 ] Problem with Suspend/Resume mechanism

"SourceForge.net" <[email protected]>
Newsgroups gmane.text.xml.expat.bugs
Message-ID <[email protected]>
Bugs item #1090885, was opened at 2004-12-24 17:19
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1090885&group_id=10127

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Van der Beken (peter_vdb)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with Suspend/Resume mechanism

Initial Comment:
I block the parser and there is still some data left in
the buffer, that data is not the last data of the XML
file and it ends on a partial token ("<foo" for
example). If I resume parsing then at some point I get
XML_ERROR_INVALID_TOKEN instead of XML_ERROR_NONE (for
XML_TOK_PARTIAL).
The problem is that at the end of XML_Parse (in the
codeblock starting with |if (nLeftOver) {|) bufferPtr
and bufferEnd are set to a newly allocated buffer.
However, in XML_ResumeParse the call to processor uses
bufferPtr and parseEndPtr. parseEndPtr refers to the
old buffer, and so the detection of partial tokens
fails, because it relies on checking if the partial
token is at the end of the buffer.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1090885&group_id=10127
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.