チケット #47900

cargo_iter_next() uses -1 array index

登録: 2023-04-22 19:29 最終更新: 2023-05-05 21:44

報告者:
担当者:
チケットの種類:
状況:
完了
コンポーネント:
マイルストーン:
優先度:
5 - 中
重要度:
5 - 中
解決法:
修正済み
ファイル:
2

詳細

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.

チケットの履歴 (8 件中 3 件表示)

2023-04-22 19:29 更新者: cazfi
  • 新しいチケット "cargo_iter_next() uses -1 array index" が作成されました
2023-04-22 19:45 更新者: cazfi
  • 担当者(未割り当て) から cazfi に更新されました
  • 解決法なし から 受領 に更新されました
  • マイルストーン(未割り当て) から 3.0.8 (完了済み) に更新されました
コメント

The difference between attached patches is that main / S3_2 one adds an assert that more stable branches patch does not.

2023-04-23 02:57 更新者: cazfi
コメント

S3_1/S3_0 patch also for S2_6.

2023-04-23 03:52 更新者: cazfi
コメント

Likely duplicate -> #47661

2023-04-26 11:52 更新者: cazfi
  • 状況オープン から 完了 に更新されました
  • 解決法受領 から 修正済み に更新されました
2023-05-05 21:44 更新者: alain_bkr
コメント

this does not fix the problem

#47982 has the complete fix

(編集済, 2023-05-05 21:46 更新者: alain_bkr)

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする