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 704325 - Gnumeric hangs on saving a corrupted (fuzzed) gnumeric file
Gnumeric hangs on saving a corrupted (fuzzed) gnumeric file
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export other
git master
Other Linux
: Normal critical
: ---
Assigned To: Morten Welinder
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2013-07-16 14:15 UTC by jutaky
Modified: 2013-07-16 16:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jutaky 2013-07-16 14:15:57 UTC
Gnumeric hangs on saving a corrupted (fuzzed) gnumeric file.

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

Test case: http://jutaky.com/fuzzing/gnumeric_case_19946_1_hung.gnumeric

Backtrace from "ssconvert gnumeric_case_19946_1_hung.gnumeric out.gnumeric":

Program received signal SIGINT, Interrupt.
g_hash_table_lookup_node (hash_table=0x830a40, key=0x7fffffffe0f0, hash_return=0x7fffffffe0c8) at ghash.c:374
374	  while (!HASH_IS_UNUSED (node_hash))
(gdb) bt
  • #0 g_hash_table_lookup_node
    at ghash.c line 374
  • #1 g_hash_table_lookup
    at ghash.c line 1076
  • #2 sheet_cell_get
    at sheet.c line 2007
  • #3 sheet_foreach_cell_in_range
    at sheet.c line 3978
  • #4 xml_write_cells
    at xml-sax-write.c line 912
  • #5 xml_write_sheet
    at xml-sax-write.c line 1313
  • #6 xml_write_sheets
    at xml-sax-write.c line 1331
  • #7 gnm_xml_file_save_full
    at xml-sax-write.c line 1457
  • #8 gnm_xml_file_save
    at xml-sax-write.c line 1491
  • #9 go_file_saver_save_real
    at app/file.c line 577
  • #10 go_file_saver_save
    at app/file.c line 848
  • #11 wbv_save_to_output
    at workbook-view.c line 1050
  • #12 wb_view_save_to_uri
    at workbook-view.c line 1087
  • #13 wb_view_save_as
    at workbook-view.c line 1123
  • #14 convert
    at ssconvert.c line 788
  • #15 main
    at ssconvert.c line 855

--
Juha Kylmänen
Research Assistant, OUSPG
Comment 1 Morten Welinder 2013-07-16 16:01:45 UTC
Not an outright hang, just a performance issue.

This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.