#48436: sdl2: create_tech_tree() trouble if reqs not filled from beginning Open Date: 2023-07-22 01:36 Last Update: 2023-07-22 03:03 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/48436 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48436 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-07-22 03:03 Updated by: cazfi * Owner Update from (None) to cazfi * Resolution Update from None to Accepted Comment: Patches for all branches, including S2_6 one handling also sdl-client, attached. --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Bugs Status: Open [Owner assigned] Priority: 5 - Medium MileStone: 3.0.9 Component: SDL2-client Severity: 5 - Medium Resolution: Accepted --------------------------------------------------------------------- Ticket details: sdl2-client create_tech_tree() assumes that *first* req_count requirement_buttons are non-NULL. It will crash, e.g., if there's one requirement but in second slot. -- 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/48436 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48436