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 702485 - Segfault on a corrupted (fuzzed) xlsx file in dependent_set_expr
Segfault on a corrupted (fuzzed) xlsx file in dependent_set_expr
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-17 16:14 UTC by jutaky
Modified: 2013-06-17 16:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jutaky 2013-06-17 16:14:27 UTC
Segfault on a corrupted (fuzzed) xlsx file in dependent_set_expr.

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

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


Program received signal SIGSEGV, Segmentation fault.
0x00007ffff78d12ad in dependent_set_expr (dep=0x18, new_texpr=0x3cfebb0) at dependent.c:408
408		int const t = dependent_type (dep);
(gdb) bt
  • #0 dependent_set_expr
    at dependent.c line 408
  • #1 dependent_managed_set_expr
    at dependent.c line 1298
  • #2 gnm_validation_set_expr
    at validation.c line 417
  • #3 xlsx_validation_expr
    at xlsx-read.c line 2158
  • #4 gsf_xml_in_end_element
    at gsf-libxml.c line 844
  • #5 xmlParseEndTag1
    at parser.c line 8683
  • #6 xmlParseElement__internal_alias
    at parser.c line 10086
  • #7 xmlParseContent__internal_alias
    at parser.c line 9885
  • #8 xmlParseElement__internal_alias
    at parser.c line 10058
  • #9 xmlParseContent__internal_alias
    at parser.c line 9885
  • #10 xmlParseElement__internal_alias
    at parser.c line 10058
  • #11 xmlParseContent__internal_alias
    at parser.c line 9885
  • #12 xmlParseElement__internal_alias
    at parser.c line 10058
  • #13 xmlParseDocument__internal_alias
    at parser.c line 10742
  • #14 gsf_xml_in_doc_parse
    at gsf-libxml.c line 1280
  • #15 xlsx_parse_stream
    at xlsx-read.c line 344
  • #16 xlsx_wb_end
    at xlsx-read.c line 3748
  • #17 gsf_xml_in_end_element
    at gsf-libxml.c line 844
  • #18 xmlParseEndTag1
    at parser.c line 8683
  • #19 xmlParseElement__internal_alias
    at parser.c line 10086
  • #20 xmlParseDocument__internal_alias
    at parser.c line 10742
  • #21 gsf_xml_in_doc_parse
    at gsf-libxml.c line 1280
  • #22 xlsx_parse_stream
    at xlsx-read.c line 344
  • #23 xlsx_file_open
    at xlsx-read.c line 4792
  • #24 go_plugin_loader_module_func_file_open
    at app/go-plugin-loader-module.c line 282
  • #25 go_plugin_file_opener_open
    at app/go-plugin-service.c line 685
  • #26 go_file_opener_open
    at app/file.c line 417
  • #27 workbook_view_new_from_input
    at workbook-view.c line 1272
  • #28 workbook_view_new_from_uri
    at workbook-view.c line 1332
  • #29 main
    at main-application.c line 321

--
Juha Kylmänen
Research Assistant, OUSPG
Comment 1 Andreas J. Guelzow 2013-06-17 16:58:38 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.