Ticket #45850

sdl2 gui_string.c: Refactor sizeof_font_tab out

Date d'ouverture: 2022-10-13 12:44 Dernière mise à jour: 2022-10-25 01:13

Rapporteur:
Propriétaire:
Type:
État:
Atteints
Composant:
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
2

Détails

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
  • Propriétaire Update from (Aucun) to cazfi
  • Résolution Update from Aucun to Accepted
  • Jalon Update from (Aucun) to 3.0.5 (atteints)
2022-10-25 01:13 Updated by: cazfi
  • État Update from Ouvert to Atteints
  • Résolution Update from Accepted to Fixed

Modifier

Please login to add comment to this ticket » Connexion