Project crashes when executing gtk_css_provider_get_named
Steps to reproduce
#include <gtk/gtk.h>
int main (int argc, char **argv)
{
printf("EXECUTED\n");
gtk_init( & argc, & argv );
GtkCssProvider *app;
app = gtk_css_provider_get_named (NULL,NULL);
return 0;
}
Version information
Linux Mint 20(based on Ubuntu 20.04) GTK 3.24.20
Backtrace
Only address sanitizer log
AddressSanitizer:DEADLYSIGNAL
=================================================================
==6051==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f0a3d9265f4 bp 0x000000000002 sp 0x7ffe3a17be38 T0)
==6051==The signal is caused by a READ memory access.
==6051==Hint: address points to the zero page.
#0 0x7f0a3d9265f3 in g_str_hash ../../../glib/ghash.c:2330
#1 0x7f0a3d92573b in g_hash_table_lookup_node ../../../glib/ghash.c:472
#2 0x7f0a3d92573b in g_hash_table_lookup ../../../glib/ghash.c:1512
#3 0x7f0a3e7690f0 in gtk_css_provider_get_named (/usr/lib/x86_64-linux-gnu/libgtk-3.so.0+0x19d0f0)
#4 0x55baa2761334 in main (/home/rafal/Nextcloud/GTK/base+0x1334)
#5 0x7f0a3e4010b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#6 0x55baa276118d in _start (/home/rafal/Nextcloud/GTK/base+0x118d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ../../../glib/ghash.c:2330 in g_str_hash
==6051==ABORTING
Found by fuzzer - https://github.com/qarmin/GtkFuzzer