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 575206 - glade_command_set_property_description() memory access error
glade_command_set_property_description() memory access error
Status: RESOLVED FIXED
Product: glade
Classification: Applications
Component: general
git master
Other All
: Normal critical
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-03-13 07:05 UTC by Dov Grobgeld
Modified: 2009-03-22 01:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dov Grobgeld 2009-03-13 07:05:33 UTC
Steps to reproduce:
The crash was only observed on Windows whenever editing a button and doing "Add custom button content", whereupon the application would crash.

By debugging under Linux I observed that the reason for the crash is that in gladeui/glade-command.c:glade_command_set_property_description() the following code causes NULL dereferencing:

description = g_strdup_printf (_("Setting %s of %s"),
			       sdata->property->klass->name,
			       sdata->property->widget->name);

sdata->property->klass->name is NULL the second time this code is called after pressing "custom button contents". This crashes under Windows, but not under Linux.



Stack trace:


Other information:
Comment 1 Tristan Van Berkom 2009-03-22 01:41:32 UTC
Fixed in svn...
Comment 2 Tristan Van Berkom 2009-03-22 01:42:44 UTC
*** Bug 576164 has been marked as a duplicate of this bug. ***