GNOME Bugzilla – Bug 501391
crash on NULL string
Last modified: 2008-09-23 15:54:24 UTC
The attached patch fixes a crashing situation where the filename doesn't exist and is NULL. On Solaris, when you try to print NULL strings, it causes crashes. Can this go upstream?
Created attachment 100149 [details] [review] patch fixing problem
Thanks. 2007-12-04 Jens Granseuer <jensgr@gmx.net> Patch by: Brian Cameron <brian.cameron@sun.com> * gtkrc-utils.c: (gtkrc_get_details), (gtkrc_get_color_scheme): printing NULL strings crashes on Solaris so don't do that (bug #501391)
*** Bug 503605 has been marked as a duplicate of this bug. ***
*** Bug 503606 has been marked as a duplicate of this bug. ***
*** Bug 492667 has been marked as a duplicate of this bug. ***
Looking at the latest release of gnome-control-center-2.21.4 (released on December 21st after the commit) and this fix isn't included. Neither is the fix in SVN head. It seems that this change got lost or was never applied. So, I'm reopening. Can this patch really be applied? :)
Brian, if you check revision 8330, you will see Jens changed the logic slightly so that the print code is never reached if the filename is NULL. See: http://svn.gnome.org/viewvc/gnome-control-center/trunk/capplets/common/gtkrc-utils.c?r1=8309&r2=8330
*** Bug 509735 has been marked as a duplicate of this bug. ***
*** Bug 518175 has been marked as a duplicate of this bug. ***
*** Bug 518719 has been marked as a duplicate of this bug. ***
*** Bug 518730 has been marked as a duplicate of this bug. ***
*** Bug 522475 has been marked as a duplicate of this bug. ***
*** Bug 531433 has been marked as a duplicate of this bug. ***
*** Bug 531995 has been marked as a duplicate of this bug. ***
*** Bug 553285 has been marked as a duplicate of this bug. ***
*** Bug 553286 has been marked as a duplicate of this bug. ***
*** Bug 553408 has been marked as a duplicate of this bug. ***