#47663: server_option_next_valid() NULL server_options dereference Open Date: 2023-03-23 14:32 Last Update: 2023-04-24 05:48 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/47663 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47663 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-04-24 05:48 Updated by: cazfi * Status Update from Open to Closed --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Bugs Status: Closed Priority: 5 - Medium MileStone: 3.0.8 Component: Client common Severity: 5 - Medium Resolution: Fixed --------------------------------------------------------------------- Ticket details: From #47574 reported by alain_bkr: ../../client/options.c:4527:20: runtime error: applying zero offset to null pointer That line is server_option_next_valid() : const struct server_option *const max = server_options + server_options_num; server_options is NULL until server side has sent the settings information. -- 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/47663 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47663