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 702364 - Segfault on a corrupted (fuzzed) xlsx file in xlsx_read_chart
Segfault on a corrupted (fuzzed) xlsx file in xlsx_read_chart
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export MS Excel (tm)
git master
Other Linux
: Normal critical
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2013-06-15 20:43 UTC by jutaky
Modified: 2013-06-15 21:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jutaky 2013-06-15 20:43:35 UTC
Segfault on a corrupted (fuzzed) xlsx file in xlsx_read_chart.

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

Test case: http://jutaky.com/fuzzing/gnumeric_case_2910_5951.xlsx

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe49312b8 in xlsx_read_chart (xin=0x7fffffffd6e0, attrs=0x940e40) at xlsx-read-drawing.c:2009
2009						GogPlot *plot = GOG_PLOT (gog_chart_get_plots (state->chart)->data);
(gdb) bt
  • #0 xlsx_read_chart
    at xlsx-read-drawing.c line 2009
  • #1 push_child
    at gsf-libxml.c line 648
  • #2 lookup_child
    at gsf-libxml.c line 684
  • #3 gsf_xml_in_start_element
    at gsf-libxml.c line 758
  • #4 xmlParseStartTag__internal_alias
    at parser.c line 8612
  • #5 xmlParseElement__internal_alias
    at parser.c line 9975
  • #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 gsf_open_pkg_parse_rel_by_id
    at gsf-open-pkg-utils.c line 418
  • #19 xlsx_parse_rel_by_id
    at xlsx-read.c line 369
  • #20 xlsx_sheet_drawing
    at xlsx-read-drawing.c line 2414
  • #21 push_child
    at gsf-libxml.c line 648
  • #22 lookup_child
    at gsf-libxml.c line 684
  • #23 gsf_xml_in_start_element
    at gsf-libxml.c line 758
  • #24 xmlParseStartTag__internal_alias
    at parser.c line 8612
  • #25 xmlParseElement__internal_alias
    at parser.c line 9975
  • #26 xmlParseContent__internal_alias
    at parser.c line 9885
  • #27 xmlParseElement__internal_alias
    at parser.c line 10058
  • #28 xmlParseDocument__internal_alias
    at parser.c line 10742
  • #29 gsf_xml_in_doc_parse
    at gsf-libxml.c line 1280
  • #30 xlsx_parse_stream
    at xlsx-read.c line 344
  • #31 xlsx_wb_end
    at xlsx-read.c line 3735
  • #32 gsf_xml_in_end_element
    at gsf-libxml.c line 844
  • #33 xmlParseEndTag1
    at parser.c line 8683
  • #34 xmlParseElement__internal_alias
    at parser.c line 10086
  • #35 xmlParseDocument__internal_alias
    at parser.c line 10742
  • #36 gsf_xml_in_doc_parse
    at gsf-libxml.c line 1280
  • #37 xlsx_parse_stream
    at xlsx-read.c line 344
  • #38 xlsx_file_open
    at xlsx-read.c line 4779
  • #39 go_plugin_loader_module_func_file_open
    at app/go-plugin-loader-module.c line 282
  • #40 go_plugin_file_opener_open
    at app/go-plugin-service.c line 685
  • #41 go_file_opener_open
    at app/file.c line 417
  • #42 workbook_view_new_from_input
    at workbook-view.c line 1272
  • #43 workbook_view_new_from_uri
    at workbook-view.c line 1332
  • #44 main
    at main-application.c line 321

--
Juha Kylmänen
Research Assistant, OUSPG
Comment 1 Andreas J. Guelzow 2013-06-15 21:24:28 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.