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 703670 - Segfault in load_image on a corrupted (fuzzed) gnumeric file
Segfault in load_image on a corrupted (fuzzed) gnumeric file
Status: RESOLVED FIXED
Product: libgoffice
Classification: Other
Component: General
GIT
Other Linux
: Normal critical
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2013-07-05 16:50 UTC by jutaky
Modified: 2013-07-05 21:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jutaky 2013-07-05 16:50:06 UTC
Segfault in load_image on a corrupted (fuzzed) gnumeric file.

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

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


Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7496d06 in load_image (xin=0x7fffffffe1a0, attrs=0x0) at app/go-doc.c:554
554		if (!*attr)
(gdb) bt
  • #0 load_image
    at app/go-doc.c line 554
  • #1 push_child
    at gsf-libxml.c line 648
  • #2 lookup_child
    at gsf-libxml.c line 684
  • #3 gsf_xml_in_start_element
    at gsf-libxml.c line 772
  • #4 xmlParseStartTag__internal_alias
    at parser.c line 8614
  • #5 xmlParseElement__internal_alias
    at parser.c line 9975
  • #6 xmlParseContent__internal_alias
    at parser.c line 9885
  • #7 xmlParseElement__internal_alias
    at parser.c line 10058
  • #8 xmlParseContent__internal_alias
    at parser.c line 9885
  • #9 xmlParseElement__internal_alias
    at parser.c line 10058
  • #10 xmlParseDocument__internal_alias
    at parser.c line 10742
  • #11 gsf_xml_in_doc_parse
    at gsf-libxml.c line 1289
  • #12 read_file_common
    at xml-sax-read.c line 3350
  • #13 gnm_xml_file_open
    at xml-sax-read.c line 3479
  • #14 go_file_opener_open_real
    at app/file.c line 159
  • #15 go_file_opener_open
    at app/file.c line 417
  • #16 workbook_view_new_from_input
    at workbook-view.c line 1272
  • #17 workbook_view_new_from_uri
    at workbook-view.c line 1332
  • #18 main
    at main-application.c line 321

--
Juha Kylmänen
Research Assistant, OUSPG
Comment 1 Andreas J. Guelzow 2013-07-05 21:13:32 UTC
This problem has been fixed in the development version of goffice. The fix will be available in the next major software release. Thank you for your bug report.