GNOME Bugzilla – Bug 134202
gdk_x11_gc_values_to_xvalues ::font field check missing
Last modified: 2004-12-22 21:47:04 UTC
gdk_x11_gc_values_to_xvalues() function has no check on GdkGCValues::font field. This causes segfault when trying to create new gc from values with GDK_GC_FONT mask set. "gdk/x11/gdkgc-x11.c" if ((mask & GDK_GC_FONT) && (values->font->type == GDK_FONT_FONT)) should be if ((mask & GDK_GC_FONT) && (values->font != NULL) && (values->font->type == GDK_FONT_FONT)) This affects gtk+-2.2 as well. Reported on gtk-app-devel-list by: Bryan Brown <bbrown@saltmine.radix.net>
Created attachment 24344 [details] small test case
It is certainly invalid to set the GDK_GC_FONT mask when no font is contained in the values.
I'd agree, though thanks for filing this bug report.