After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 643337 - GC new_with_values() non-hashref segv
GC new_with_values() non-hashref segv
Status: RESOLVED OBSOLETE
Product: gnome-perl
Classification: Bindings
Component: Gtk2
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk2-perl-bugs
gtk2-perl-bugs
Depends on:
Blocks:
 
 
Reported: 2011-02-25 22:55 UTC by Kevin Ryde
Modified: 2021-07-05 12:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch and test case (2.24 KB, patch)
2011-02-25 22:55 UTC, Kevin Ryde
none Details | Review

Description Kevin Ryde 2011-02-25 22:55:37 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.
Comment 1 Torsten Schoenfeld 2011-08-08 15:31:02 UTC
I think croak()-ing would indeed be better than silently accepting garbage.  Can you write a patch for that?
Comment 2 GNOME Infrastructure Team 2021-07-05 12:22:33 UTC
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.