URL: <http://gna.org/bugs/?22523>
Summary: Risk of use of uninitialized values when loading a savegame Project: Freeciv Submitted by: pepeto Submitted on: mar. 26 août 2014 11:43:15 CEST Category: general Severity: 3 - Normal Priority: 5 - Normal Status: Ready For Test Assigned to: pepeto Originator Email: Open/Closed: Open Release: S2_4, S2_5, trunk Discussion Lock: Any Operating System: Any Planned Release: 2.4.4, 2.5.0-beta2, 2.6.0 _______________________________________________________ Details: At many locations, the code ignores secfile_lookup_XXX() returned values, and then assumes that something has been read. Attached patch correct these parts and add warn_unused_result attribute for all secfile_lookup_XXX() functions. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: mar. 26 août 2014 11:43:15 CEST Name: trunk_secfile_lookup_warn_unused_result.patch Size: 27 ko By: pepeto <http://gna.org/bugs/download.php?file_id=21870> ------------------------------------------------------- Date: mar. 26 août 2014 11:43:15 CEST Name: S2_5_secfile_lookup_warn_unused_result.patch Size: 18 ko By: pepeto <http://gna.org/bugs/download.php?file_id=21871> ------------------------------------------------------- Date: mar. 26 août 2014 11:43:15 CEST Name: S2_4_secfile_lookup_warn_unused_result.patch Size: 15 ko By: pepeto <http://gna.org/bugs/download.php?file_id=21872> _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?22523> _______________________________________________ Message posté via/par Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev