#48139: draw_segment() call to tile_to_canvas_pos() clang analyzer NULL dereference warning Open Date: 2023-06-02 06:49 Last Update: 2023-06-11 08:41 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/48139 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48139 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-06-11 08:41 Updated by: cazfi Comment: I think that the warning is sort of regression introduced by #47894. Not as serious as regressions usually are, as one could also interpret this so that the warning that existed prior to #47894 is now just produced about more apt place (not about all tile_to_canvas_pos() calls but specifically about the draw_segment() one) --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Bugs Status: Open Priority: 5 - Medium MileStone: 3.0.8 Component: Client common Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: Clang analyzer warns that draw_segment() may pass NULL as third parameter to tile_to_canvas_pos(). -- 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/48139 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48139