チケット #44754

Fatal tileset load failure not handled in FREECIV_NDEBUG build

登録: 2022-06-05 02:44 最終更新: 2022-06-26 23:49

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

詳細

tilespec_reread() has

fc_assert_exit_msg(NULL != tileset, "Failed to re-read the currently loaded tileset.");

On FREECIV_NDEBUG builds it does not give the error message from that assert, but likely crashes in a more mysterious way. Also; clang analyzer gives warnings about those later dereferences of the NULL tileset (which is how I found this).

We should not use fc_assert there, but handle the situation also in FREECIV_NDEBUG builds.

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

2022-06-05 02:44 更新者: cazfi
  • 新しいチケット "Fatal tileset load failure not handled in FREECIV_NDEBUG build" が作成されました
2022-06-09 16:00 更新者: cazfi
2022-06-20 23:52 更新者: cazfi
  • 担当者(未割り当て) から cazfi に更新されました
  • 解決法なし から 受領 に更新されました
2022-06-21 01:49 更新者: cazfi
コメント

Plan to push to S2_6 too, for easing work of anybody porting it to more exotic environments.

2022-06-26 23:49 更新者: cazfi
  • 状況オープン から 完了 に更新されました
  • 解決法受領 から 修正済み に更新されました

編集

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