#494 Unitialized memory returned from XML_Parse

Feature Request
closed-fixed
None
5
2016-03-11
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
     
  • Sebastian Pipping

    • status: open-fixed --> closed-fixed
    • Group: --> Feature Request
     
  • Sebastian Pipping

    Fixed since 2.1.0, commit e3e81a6d9f0885ea02d3979151c358f314bf3d6d, closing.

     

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

Sign up for the SourceForge newsletter:





No, thanks