#44987: dai_is_unit_tired_waiting_boat() NULL dereference when unit has no homecity Open Date: 2022-07-03 08:51 Last Update: 2022-07-03 09:09 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/44987 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44987 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-07-03 09:09 Updated by: cazfi * Owner Update from (None) to cazfi * Resolution Update from None to Accepted Comment: Also a S2_6 version attached --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Bugs Status: Open [Owner assigned] Priority: 5 - Medium MileStone: 3.0.3 Component: AI Severity: 5 - Medium Resolution: Accepted --------------------------------------------------------------------- Ticket details: dai_is_unit_tired_waiting_boat() has : "if (tile_continent(src) != tile_continent(src_home_city))" where src_home_city might be NULL. tile_continent() is just a macro that does not check it's parameter. -- 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/44987 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44987