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 702379 - Out-of-memory on a corrupted (fuzzed) xlsx file
Out-of-memory on a corrupted (fuzzed) xlsx file
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-16 07:28 UTC by jutaky
Modified: 2013-06-16 13:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jutaky 2013-06-16 07:28:41 UTC
SIGTRAP crash on a corrupted (fuzzed) xlsx file.

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

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

(/home/jutaky/fuzzing/apps/bin/gnumeric-1.12.3:14423): GLib-ERROR **: gmem.c:110: failed to allocate 18446744073709551615 bytes

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff3b52fa5 in g_logv (log_domain=0x7ffff3bd9ea1 "GLib", log_level=G_LOG_LEVEL_ERROR, 
    format=0x7ffff3bd9e80 "%s: failed to allocate %lu bytes", args=0x7fffffffcf58) at gmessages.c:989
989			G_BREAKPOINT ();
(gdb) bt
  • #0 g_logv
    at gmessages.c line 989
  • #1 g_log
    at gmessages.c line 1025
  • #2 g_malloc
    at gmem.c line 109
  • #3 g_malloc_n
    at gmem.c line 345
  • #4 xlsx_blip_start
    at xlsx-read-drawing.c line 2189
  • #5 push_child
    at gsf-libxml.c line 648
  • #6 lookup_child
    at gsf-libxml.c line 684
  • #7 gsf_xml_in_start_element
    at gsf-libxml.c line 758
  • #8 xmlParseStartTag__internal_alias
    at parser.c line 8612
  • #9 xmlParseElement__internal_alias
    at parser.c line 9975
  • #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 xmlParseContent__internal_alias
    at parser.c line 9885
  • #17 xmlParseElement__internal_alias
    at parser.c line 10058
  • #18 xmlParseDocument__internal_alias
    at parser.c line 10742
  • #19 gsf_xml_in_doc_parse
    at gsf-libxml.c line 1280
  • #20 gsf_open_pkg_parse_rel_by_id
    at gsf-open-pkg-utils.c line 418
  • #21 xlsx_parse_rel_by_id
    at xlsx-read.c line 369
  • #22 xlsx_sheet_drawing
    at xlsx-read-drawing.c line 2414
  • #23 push_child
    at gsf-libxml.c line 648
  • #24 lookup_child
    at gsf-libxml.c line 684
  • #25 gsf_xml_in_start_element
    at gsf-libxml.c line 758
  • #26 xmlParseStartTag__internal_alias
    at parser.c line 8612
  • #27 xmlParseElement__internal_alias
    at parser.c line 9975
  • #28 xmlParseContent__internal_alias
    at parser.c line 9885
  • #29 xmlParseElement__internal_alias
    at parser.c line 10058
  • #30 xmlParseDocument__internal_alias
    at parser.c line 10742
  • #31 gsf_xml_in_doc_parse
    at gsf-libxml.c line 1280
  • #32 xlsx_parse_stream
    at xlsx-read.c line 344
  • #33 xlsx_wb_end
    at xlsx-read.c line 3735
  • #34 gsf_xml_in_end_element
    at gsf-libxml.c line 844
  • #35 xmlParseEndTag1
    at parser.c line 8683
  • #36 xmlParseElement__internal_alias
    at parser.c line 10086
  • #37 xmlParseDocument__internal_alias
    at parser.c line 10742
  • #38 gsf_xml_in_doc_parse
    at gsf-libxml.c line 1280
  • #39 xlsx_parse_stream
    at xlsx-read.c line 344
  • #40 xlsx_file_open
    at xlsx-read.c line 4779
  • #41 go_plugin_loader_module_func_file_open
    at app/go-plugin-loader-module.c line 282
  • #42 go_plugin_file_opener_open
    at app/go-plugin-service.c line 685
  • #43 go_file_opener_open
    at app/file.c line 417
  • #44 workbook_view_new_from_input
    at workbook-view.c line 1272
  • #45 workbook_view_new_from_uri
    at workbook-view.c line 1332
  • #46 main
    at main-application.c line 321

--
Juha Kylmänen
Research Assistant, OUSPG
Comment 1 Morten Welinder 2013-06-16 13:28:42 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.