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 702409 - Segfault on a corrupted (fuzzed) ods file in oo_parse_border
Segfault on a corrupted (fuzzed) ods file in oo_parse_border
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export OOo / OASIS
git master
Other Linux
: Normal critical
: ---
Assigned To: Andreas J. Guelzow
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2013-06-16 18:22 UTC by jutaky
Modified: 2013-06-16 18:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jutaky 2013-06-16 18:22:58 UTC
Segfault on a corrupted (fuzzed) ods file in oo_parse_border.

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

Test case: http://jutaky.com/fuzzing/gnumeric_case_16144_2869.ods

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe4747dd8 in oo_parse_border (xin=0x7fffffffdd80, style=0x8a4a18, str=0x8ba8e0 "0.035cm solid #000rap", location=MSTYLE_BORDER_TOP)
    at openoffice-read.c:6060
6060			border->width = pts;
(gdb) bt
  • #0 oo_parse_border
    at openoffice-read.c line 6060
  • #1 oo_style_prop_cell
    at openoffice-read.c line 6189
  • #2 oo_style_prop
    at openoffice-read.c line 7114
  • #3 push_child
    at gsf-libxml.c line 648
  • #4 lookup_child
    at gsf-libxml.c line 684
  • #5 gsf_xml_in_start_element
    at gsf-libxml.c line 758
  • #6 xmlParseStartTag__internal_alias
    at parser.c line 8612
  • #7 xmlParseElement__internal_alias
    at parser.c line 9975
  • #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 xmlParseDocument__internal_alias
    at parser.c line 10742
  • #15 gsf_xml_in_doc_parse
    at gsf-libxml.c line 1280
  • #16 openoffice_file_open
    at openoffice-read.c line 12039
  • #17 go_plugin_loader_module_func_file_open
    at app/go-plugin-loader-module.c line 282
  • #18 go_plugin_file_opener_open
    at app/go-plugin-service.c line 685
  • #19 go_file_opener_open
    at app/file.c line 417
  • #20 workbook_view_new_from_input
    at workbook-view.c line 1272
  • #21 workbook_view_new_from_uri
    at workbook-view.c line 1332
  • #22 main
    at main-application.c line 321

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