Ticket #44833

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

Open Date: 2022-06-15 01:55 Last Update: 2022-07-17 06:03

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

Details

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
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
2022-07-06 10:39 Updated by: cazfi
Comment

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
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login