GNOME Bugzilla – Bug 643337
GC new_with_values() non-hashref segv
Last modified: 2021-07-05 12:22:33 UTC
Created attachment 181954 [details] [review] patch and test case I accidentally called Gtk2::Gdk::GC->new_with_values() with a string instead of a hashref and got some glib warnings and segv. I think the GdkGCValuesMask passed down to gdk_gc_new_with_values() in that case ends up uninitialized garbage. It'd be good to avoid trouble by at least zeroing out in that case, per attached. Unless an error for a non-hashref arg would be better.
I think croak()-ing would indeed be better than silently accepting garbage. Can you write a patch for that?
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME?utf8=%E2%9C%93&filter=perl- Thank you for your understanding and your help.