Ticket #45850

sdl2 gui_string.c: Refactor sizeof_font_tab out

Open Date: 2022-10-13 12:44 Last Update: 2022-10-25 01:13

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
2

Details

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
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
  • Milestone Update from (None) to 3.0.5 (closed)
2022-10-25 01:13 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login