#48875: Clang analyzer goto_map use-after-free warning Open Date: 2023-10-21 04:30 Last Update: 2023-10-21 04:37 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/48875 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48875 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-10-21 04:37 Updated by: cazfi * Owner Update from (None) to cazfi * Resolution Update from None to Accepted * Milestone Update from (None) to 3.0.9 --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Bugs Status: Open [Owner assigned] Priority: 5 - Medium MileStone: 3.0.9 Component: Client common Severity: 5 - Medium Resolution: Accepted --------------------------------------------------------------------- Ticket details: S3_1, clang analyzer: ../../../src/client/goto.c:1048:7: warning: Use of memory after it is freed [unix.Malloc] goto_map_list_remove(goto_maps, goto_map); The warning is bogus in that the pointer is only used as a value, there's no memory access through it. -- 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/48875 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48875