GNOME Bugzilla – Bug 639625
Crashes on dereferencing a NULL GtkBorder.
Last modified: 2011-01-20 02:25:09 UTC
I'm using Ubuntu 10.04 with jhbuild - Maybe this information will be useful for this bug, because I couldn't reproduce it on Fedora 14 with jhbuild. In several places (gtkthemingengine.c, gtkbutton.c, gtkcombobox.c, gtkmenubar.c) a "border-width" style property (which is a GtkBorder*) is retrieved and used in some computations. The problem lies in a case when returned border is NULL and this is not checked and thus a segfault happens. I'm attaching quick and dirty patch fixing it by creating a new GtkBorder if returned one was NULL, although I don't know if it shouldn't be fixed somewhere else or whether the created border should have other initial values.
This should be fixed by supporting default values for style properties
Fixed for now by guaranteeing non-NULL defaults for all style properties of type GtkBorder