Project crashes when executing gtk_app_chooser_get_app_info
Steps to reproduce
#include <gtk/gtk.h>
int
main (int argc, char **argv)
{
GtkAppChooserButton *app;
app = gtk_app_chooser_button_new (NULL);
gtk_app_chooser_get_app_info(app);
return 0;
}
Version information
Linux Mint 20(based on Ubuntu 20.04) GTK 3.24.20
Backtrace
Only address sanitizer log
(process:5789): Gtk-CRITICAL **: 07:33:53.267: gtk_app_chooser_button_new: assertion 'content_type != NULL' failed
AddressSanitizer:DEADLYSIGNAL
=================================================================
==5789==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f57c8246d1d bp 0x000000000000 sp 0x7ffc50443ab0 T0)
==5789==The signal is caused by a READ memory access.
==5789==Hint: address points to the zero page.
#0 0x7f57c8246d1c in gtk_app_chooser_get_app_info (/usr/lib/x86_64-linux-gnu/libgtk-3.so.0+0x119d1c)
#1 0x55d70299a1d5 in main (/home/rafal/Nextcloud/GTK/base+0x11d5)
#2 0x7f57c7f620b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#3 0x55d70299a0ed in _start (/home/rafal/Nextcloud/GTK/base+0x10ed)
Found by fuzzer - https://github.com/qarmin/GtkFuzzer