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 703895 - Segfault in read_utf16_str on a corrupted (fuzzed) xls file
Segfault in read_utf16_str on a corrupted (fuzzed) xls 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-07-09 18:32 UTC by jutaky
Modified: 2013-07-09 19:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jutaky 2013-07-09 18:32:45 UTC
Segfault in read_utf16_str on a corrupted (fuzzed) xls file.

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

Test case: http://jutaky.com/fuzzing/gnumeric_case_2147_9308.xls

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe6b475e7 in read_utf16_str (word_len=2147483643, data=0xa <Address 0xa out of bounds>)
    at ms-excel-read.c:5671
5671			uni_text [i] = GSF_LE_GET_GUINT16 (data);
(gdb) bt
  • #0 read_utf16_str
    at ms-excel-read.c line 5671
  • #1 excel_read_HLINK
    at ms-excel-read.c line 5831
  • #2 excel_read_sheet
    at ms-excel-read.c line 6740
  • #3 excel_read_BOF
    at ms-excel-read.c line 6993
  • #4 excel_read_workbook
    at ms-excel-read.c line 7083
  • #5 excel_enc_file_open
    at boot.c line 193
  • #6 excel_file_open
    at boot.c line 250
  • #7 go_plugin_loader_module_func_file_open
    at app/go-plugin-loader-module.c line 282
  • #8 go_plugin_file_opener_open
    at app/go-plugin-service.c line 685
  • #9 go_file_opener_open
    at app/file.c line 417
  • #10 workbook_view_new_from_input
    at workbook-view.c line 1272
  • #11 workbook_view_new_from_uri
    at workbook-view.c line 1332
  • #12 main
    at main-application.c line 321

--
Juha Kylmänen
Research Assistant, OUSPG
Comment 1 Andreas J. Guelzow 2013-07-09 19:54:18 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.