Ticket #47559

sdl2: popup_impr_info() NULL dereference when impr has just !present reqs

Date d'ouverture: 2023-03-11 14:38 Dernière mise à jour: 2023-03-17 02:10

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

Détails

Clang analyzer (S3_0):

../../../../src/client/gui-sdl2/helpdlg.c:539:23: warning: Access to field 'next' results in a dereference of a null pointer (loaded from field 'pRequirementButton') [core.NullDereference]
pRequirementLabel = pStore->pRequirementButton->next;

I think this is real. pStore->pRequirementButton, set from pRequirementLabel2, might be NULL when the improvement both HAS requirements, but all of those are negated ones.

Ticket History (3/6 Histories)

2023-03-11 14:38 Updated by: cazfi
  • New Ticket "sdl2: popup_impr_info() NULL dereference when impr has just !present reqs" created
2023-03-11 15:12 Updated by: cazfi
  • Propriétaire Update from (Aucun) to cazfi
  • Résolution Update from Aucun to Accepted
Commentaire

Also S2_6 version included, with sdl-client handled.

2023-03-17 02:10 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