Ticket #44833

gtk: popup_add_menu() calls qsort(NULL... )

Date d'ouverture: 2022-06-15 01:55 Dernière mise à jour: 2022-07-17 06:03

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

Détails

gtk3.22 diplodlg.c:popup_add_menu() sets city_list_ptrs to NULL if giver has no cities at all. Regardless, later there's qsort(city_list_ptrs...) call.

Ticket History (3/7 Histories)

2022-06-15 01:55 Updated by: cazfi
  • New Ticket "gtk: popup_add_menu() calls qsort(NULL... )" created
2022-07-06 04:11 Updated by: cazfi
  • Propriétaire Update from (Aucun) to cazfi
  • Résolution Update from Aucun to Accepted
2022-07-06 10:39 Updated by: cazfi
Commentaire

Will rewrite that commit message before pushing - while with some qsort() implementation there could be NULL dereference, let's just say that we avoid using NULL for a nonnull parameter.

2022-07-17 06:03 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