GNOME Bugzilla – Bug 557077
XLS import crash
Last modified: 2008-10-21 14:50:19 UTC
Upcoming file creating from file over in 557027 crashes Gnumeric.
Created attachment 120923 [details] Bad XLS file
+ Trace 208422
(gdb) l 2570 gog_object_add_by_name (GOG_OBJECT (s->chart), "Y-Axis", GOG_OBJECT (l->data)); 2571 l = l->next; 2572 } 2573 g_slist_free (axisZ); 2574 /* examine the first series to retreive categories */ 2575 eseries = g_ptr_array_index (s->series, 0); 2576 style = eseries->style; 2577 if (!IS_GO_DATA_VECTOR (eseries->data [GOG_MS_DIM_CATEGORIES].data)) 2578 goto not_a_matrix; 2579 cat_expr = gnm_go_data_get_expr (eseries->data [GOG_MS_DIM_CATEGORIES].data); (gdb) p s->series $2 = (GPtrArray *) 0x8bad00 (gdb) p *s->series $3 = {pdata = 0x0, len = 0}
no series were exported to this file because there were no data in the original file, so g_ptr_array_index crashes. Adding a test (s->series->len == 0) and jumping out on success fixes it easily.
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.