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 704311 - Segfault in go_emf_parse on a corrupted (fuzzed) gnumeric file
Segfault in go_emf_parse on 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 10:52 UTC by jutaky
Modified: 2013-07-17 05:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jutaky 2013-07-16 10:52:19 UTC
Segfault in go_emf_parse on a corrupted (fuzzed) gnumeric file.

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

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


Program received signal SIGSEGV, Segmentation fault.
0x00007ffff75492ca in go_emf_parse (emf=0x8f5460, input=0x8dda80, error=0x0) at utils/go-emf.c:4553
4553		switch (GSF_LE_GET_GUINT32 (data)) {
(gdb) bt
  • #0 go_emf_parse
    at utils/go-emf.c line 4553
  • #1 go_emf_new_from_data
    at utils/go-emf.c line 274
  • #2 go_image_new_from_data
    at utils/go-image.c line 650
  • #3 content_end
    at sheet-object-image.c line 397
  • #4 gsf_xml_in_end_element
    at gsf-libxml.c line 844
  • #5 xmlParseEndTag1
    at parser.c line 8683
  • #6 xmlParseElement__internal_alias
    at parser.c line 10086
  • #7 xmlParseContent__internal_alias
    at parser.c line 9885
  • #8 xmlParseElement__internal_alias
    at parser.c line 10058
  • #9 xmlParseContent__internal_alias
    at parser.c line 9885
  • #10 xmlParseElement__internal_alias
    at parser.c line 10058
  • #11 xmlParseContent__internal_alias
    at parser.c line 9885
  • #12 xmlParseElement__internal_alias
    at parser.c line 10058
  • #13 xmlParseContent__internal_alias
    at parser.c line 9885
  • #14 xmlParseElement__internal_alias
    at parser.c line 10058
  • #15 xmlParseContent__internal_alias
    at parser.c line 9885
  • #16 xmlParseElement__internal_alias
    at parser.c line 10058
  • #17 xmlParseDocument__internal_alias
    at parser.c line 10742
  • #18 gsf_xml_in_doc_parse
    at gsf-libxml.c line 1289
  • #19 read_file_common
    at xml-sax-read.c line 3350
  • #20 gnm_xml_file_open
    at xml-sax-read.c line 3479
  • #21 go_file_opener_open_real
    at app/file.c line 159
  • #22 go_file_opener_open
    at app/file.c line 417
  • #23 workbook_view_new_from_input
    at workbook-view.c line 1272
  • #24 workbook_view_new_from_uri
    at workbook-view.c line 1332
  • #25 main
    at main-application.c line 321

--
Juha Kylmänen
Research Assistant, OUSPG
Comment 1 Jean Bréfort 2013-07-17 05:26:11 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.