#47900: cargo_iter_next() uses -1 array index Open Date: 2023-04-22 12:29 Last Update: 2023-05-05 14:44 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/47900 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47900 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-05-05 14:44 Updated by: alain_bkr Comment: not duplicate, #47661 fixes the bug --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Bugs Status: Closed Priority: 5 - Medium MileStone: 3.0.8 Component: General Severity: 5 - Medium Resolution: Fixed --------------------------------------------------------------------- Ticket details: Reported by alain_bkr in https://osdn.net/projects/freeciv/ticket/47748#comment:12505:47748:1681095349 : > ../../common/unit.c:2475:13: runtime error: index -1 out of bounds for type 'const struct unit_list_link *[5]' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../common/unit.c:2475:13 in This was with S3_1. -- 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/47900 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47900