#494 Unitialized memory returned from XML_Parse

open-fixed
Karl Waclawek
None
5
2012-03-03
2011-03-11
No

XML_Parse ends with |return result;|, but there's a case where result is left unitialized, namely if the call to processor on line 1483 returns XML_ERROR_NONE and ps_parsing has been set to XML_FINISHED. I'm attaching a patch that makes sure result is always initialized.

(This was reported in Mozilla as https://bugzilla.mozilla.org/show_bug.cgi?id=607721\)

Discussion

  • Karl Waclawek
    Karl Waclawek
    2012-03-03

    Patch applied in xmlparse.c rev 1.168.

     
  • Karl Waclawek
    Karl Waclawek
    2012-03-03

    • assigned_to: nobody --> kwaclaw
    • status: open --> open-fixed