[Expat-bugs] [ expat-Bugs-1090885 ] Problem with Suspend/Resume mechanism
SourceForge.net
noreply at sourceforge.net
Mon Mar 6 15:49:28 CET 2006
Bugs item #1090885, was opened at 2004-12-24 11:19
Message generated for change (Comment added) made by kwaclaw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1090885&group_id=10127
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Test Required
>Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Peter Van der Beken (peter_vdb)
Assigned to: Fred L. Drake, Jr. (fdrake)
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.
----------------------------------------------------------------------
>Comment By: Karl Waclawek (kwaclaw)
Date: 2006-03-06 09:49
Message:
Logged In: YES
user_id=290026
No test cases were built, but since there were no complaints
for a long time, we close this issue.
----------------------------------------------------------------------
Comment By: Karl Waclawek (kwaclaw)
Date: 2004-12-24 11:32
Message:
Logged In: YES
user_id=290026
Fixed in xml_parse.c 1.141.
Thanks for reporting this, Peter.
Leaving it open for testing.
Assigned to Fred.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1090885&group_id=10127
More information about the Expat-bugs
mailing list