[Freeciv-tickets] [freeciv] #48875: Clang analyzer goto_map use-after-free warning

Back to archive index
OSDN Ticket System norep****@osdn*****
Sat Oct 21 10:30:56 JST 2023


#48875: Clang analyzer goto_map use-after-free warning

  Open Date: 2023-10-21 04:30
Last Update: 2023-10-21 04:30

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:30 Updated by: cazfi
 * New Ticket "Clang analyzer goto_map use-after-free warning" created


---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: (None)
          Type: Bugs
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: Client common
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

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



More information about the Freeciv-tickets mailing list
Back to archive index