[ expat-Bugs-3206497 ] Unitialized memory returned from XML_Parse
SourceForge.net <[email protected]> Sat, 03 Mar 2012 11:16:04 -0800
| Newsgroups | gmane.text.xml.expat.bugs |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #3206497, was opened at 2011-03-11 06:52 Message generated for change (Comment added) made by kwaclaw 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: Fixed Priority: 5 Private: No Submitted By: Peter Van der Beken (peter_vdb) >Assigned to: Karl Waclawek (kwaclaw) 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) ---------------------------------------------------------------------- >Comment By: Karl Waclawek (kwaclaw) Date: 2012-03-03 11:16 Message: Patch applied in xmlparse.c rev 1.168. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110127&aid=3206497&group_id=10127