待辦事項 #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.

Ticket History (3/5 Histories)

2022-10-13 12:44 Updated by: cazfi
  • New Ticket "sdl2 gui_string.c: Refactor sizeof_font_tab out" created
2022-10-16 14:48 Updated by: cazfi
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from to Accepted
  • 里程碑 Update from (無) to 3.0.5 (closed)
2022-10-25 01:13 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

編輯

Please login to add comment to this ticket » 登入