[Expat-bugs] [ expat-Bugs-3206497 ] Unitialized memory returned from XML_Parse

SourceForge.net noreply at sourceforge.net
Fri Mar 11 15:52:33 CET 2011


Bugs item #3206497, was opened at 2011-03-11 15:52
Message generated for change (Tracker Item Submitted) made by peter_vdb
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=3206497&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: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Peter Van der Beken (peter_vdb)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unitialized memory returned from XML_Parse

Initial Comment:
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)

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=3206497&group_id=10127


More information about the Expat-bugs mailing list