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 702285 - Segfault on a corrupted (fuzzed) ods file in odf_custom_shape_end
Segfault on a corrupted (fuzzed) ods file in odf_custom_shape_end
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export OOo / OASIS
git master
Other Linux
: Normal critical
: ---
Assigned To: Andreas J. Guelzow
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2013-06-14 19:38 UTC by jutaky
Modified: 2013-06-14 20:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jutaky 2013-06-14 19:38:12 UTC
Segfault on a corrupted (fuzzed) ods file in odf_custom_shape_end.

Git versions of glib, goffice, gnumeric, libgsf and libxml2.

Test case: http://jutaky.com/fuzzing/gnumeric_case_16926_1425.ods


Program received signal SIGSEGV, Segmentation fault.
0x00007fffe4753192 in odf_custom_shape_end (xin=0x7fffffffdd90, blob=0x0) at openoffice-read.c:9547
9547		for (cur = strs; *cur != NULL; cur++) {
(gdb) bt
  • #0 odf_custom_shape_end
    at openoffice-read.c line 9547
  • #1 gsf_xml_in_end_element
    at gsf-libxml.c line 844
  • #2 xmlParseEndTag1
    at parser.c line 8683
  • #3 xmlParseElement__internal_alias
    at parser.c line 10086
  • #4 xmlParseContent__internal_alias
    at parser.c line 9885
  • #5 xmlParseElement__internal_alias
    at parser.c line 10058
  • #6 xmlParseContent__internal_alias
    at parser.c line 9885
  • #7 xmlParseElement__internal_alias
    at parser.c line 10058
  • #8 xmlParseContent__internal_alias
    at parser.c line 9885
  • #9 xmlParseElement__internal_alias
    at parser.c line 10058
  • #10 xmlParseContent__internal_alias
    at parser.c line 9885
  • #11 xmlParseElement__internal_alias
    at parser.c line 10058
  • #12 xmlParseContent__internal_alias
    at parser.c line 9885
  • #13 xmlParseElement__internal_alias
    at parser.c line 10058
  • #14 xmlParseContent__internal_alias
    at parser.c line 9885
  • #15 xmlParseElement__internal_alias
    at parser.c line 10058
  • #16 xmlParseDocument__internal_alias
    at parser.c line 10742
  • #17 gsf_xml_in_doc_parse
    at gsf-libxml.c line 1280
  • #18 openoffice_file_open
    at openoffice-read.c line 12022
  • #19 go_plugin_loader_module_func_file_open
    at app/go-plugin-loader-module.c line 282
  • #20 go_plugin_file_opener_open
    at app/go-plugin-service.c line 685
  • #21 go_file_opener_open
    at app/file.c line 417
  • #22 workbook_view_new_from_input
    at workbook-view.c line 1272
  • #23 workbook_view_new_from_uri
    at workbook-view.c line 1332
  • #24 main
    at main-application.c line 321


--
Juha Kylmänen
Research Assistant, OUSPG
Comment 1 Andreas J. Guelzow 2013-06-14 20:07:46 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.