gnumeric r17257 - in trunk: . plugins/excel



Author: mortenw
Date: Mon Mar 30 20:56:17 2009
New Revision: 17257
URL: http://svn.gnome.org/viewvc/gnumeric?rev=17257&view=rev

Log:
2009-03-30  Morten Welinder  <terra gnome org>

	* ms-chart.c (ms_excel_chart_read): Add sanity check.  Fixes
	#577351.



Modified:
   trunk/NEWS
   trunk/plugins/excel/ChangeLog
   trunk/plugins/excel/ms-chart.c

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Mon Mar 30 20:56:17 2009
@@ -8,7 +8,7 @@
 	* Fix Applix loading crash.  [#577145]
 	* Fix Lotus loading crash.  [#577156]
 	* Fix XLS loading crashes.  [#577205] [#577208] [#577259] [#577260]
-	[#577348]
+	[#577348] [#577351]
 	* Add sorted sheet list to tab menu.
 
 --------------------------------------------------------------------------

Modified: trunk/plugins/excel/ms-chart.c
==============================================================================
--- trunk/plugins/excel/ms-chart.c	(original)
+++ trunk/plugins/excel/ms-chart.c	Mon Mar 30 20:56:17 2009
@@ -3604,6 +3604,7 @@
 		case BIFF_WINDOW2_v0 :
 		case BIFF_WINDOW2_v2 :
 			if (full_page != NULL && BC_R(ver)(&state) > MS_BIFF_V2 &&
+			    q->length >= 2 &&
 			    GSF_LE_GET_GUINT16 (q->data + 0) & 0x0400)
 				wb_view_sheet_focus (container->importer->wbv, full_page);
 			break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]