チケット #45850

sdl2 gui_string.c: Refactor sizeof_font_tab out

登録: 2022-10-13 12:44 最終更新: 2022-10-25 01:13

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

詳細

Clang analyzer gives a couple of "NULL dereference" -warnings about sdl2-client gui_string.c. I don't think those are valid, as they would occur only if sizeof_font_tab and the actual length of the linked list would be out of sync and I don't see a way for that to happen. Still, that double accounting design makes no sense; we have a terminated linked list which we iterate through by counting steps to reach its assumed end. Let's refactor sizeof_font_tab out.

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

2022-10-13 12:44 更新者: cazfi
  • 新しいチケット "sdl2 gui_string.c: Refactor sizeof_font_tab out" が作成されました
2022-10-16 14:48 更新者: cazfi
  • 担当者(未割り当て) から cazfi に更新されました
  • 解決法なし から 受領 に更新されました
  • マイルストーン(未割り当て) から 3.0.5 (完了済み) に更新されました
2022-10-25 01:13 更新者: cazfi
  • 状況オープン から 完了 に更新されました
  • 解決法受領 から 修正済み に更新されました

編集

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