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 628671 - potential crash in gog_styled_object_document_changed
potential crash in gog_styled_object_document_changed
Status: RESOLVED FIXED
Product: libgoffice
Classification: Other
Component: Graphing / Charting
0.8.x
Other Linux
: Normal normal
: ---
Assigned To: Jean Bréfort
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2010-09-03 05:57 UTC by Andreas J. Guelzow
Modified: 2010-09-03 08:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andreas J. Guelzow 2010-09-03 05:57:58 UTC
if a GOImage was created using go_image_new_from_pixbuf it may not have a name. In that case gog_styled_object_document_changed will crash at:

		char *id = g_strdup (go_image_get_name (style->fill.image.image));
		/* remove the (nnn) modifier if any */
		int i = strlen (id) - 1;

since strlen does not like a NULL argument!
Comment 1 Jean Bréfort 2010-09-03 08:32:35 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.