#353 Problem with Suspend/Resume mechanism

Test Required
closed-fixed
None
5
2006-03-06
2004-12-24
No

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.

Discussion

  • Peter Van der Beken

    • assigned_to: nobody --> kwaclaw
     
  • Karl Waclawek

    Karl Waclawek - 2004-12-24
    • milestone: --> Test Required
    • assigned_to: kwaclaw --> fdrake
    • status: open --> open-fixed
     
  • Karl Waclawek

    Karl Waclawek - 2004-12-24

    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.

     
  • Karl Waclawek

    Karl Waclawek - 2006-03-06
    • status: open-fixed --> closed-fixed
     
  • Karl Waclawek

    Karl Waclawek - 2006-03-06

    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.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks