#43768: gcc-12: load_ruleset_units() "use after free" warning Open Date: 2022-02-02 14:31 Last Update: 2022-02-02 17:53 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/43768 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43768 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-02-02 17:53 Updated by: cazfi * Owner Update from (None) to cazfi * Resolution Update from None to Accepted --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Bugs Status: Open [Owner assigned] Priority: 5 - Medium MileStone: 3.1.0 Component: Server Severity: 5 - Medium Resolution: Accepted --------------------------------------------------------------------- Ticket details: gcc-12 development version gives a warning (error when --enable-debug -> -Werror used) in S3_1 about load_ruleset_units() use of slist pointer at line 2468 after it has been freed at line 2442. I did a gcc-12 build of S3_0 already, and it went through fine -> this is not affecting 3.0.0 plans. Haven't checked situation in master yet. -- Ticket information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/43768 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=43768