[gnumeric] linest: crash.



commit 3d2e661f3eda8236fac03c56c5e020b4f29568c8
Author: Morten Welinder <terra gnome org>
Date:   Tue Jun 15 21:42:49 2010 -0400

    linest: crash.

 plugins/fn-stat/ChangeLog   |    2 ++
 plugins/fn-stat/functions.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/fn-stat/ChangeLog b/plugins/fn-stat/ChangeLog
index 34d14f1..fba162c 100644
--- a/plugins/fn-stat/ChangeLog
+++ b/plugins/fn-stat/ChangeLog
@@ -1,6 +1,8 @@
 2010-06-15  Morten Welinder  <terra gnome org>
 
 	* functions.c (gnumeric_growth): Handle missing data.
+	(gnm_reg_data_collect): Zero the right amount of data.  Fixes
+	#621706.
 
 2010-06-15  Andreas J. Guelzow <aguelzow pyrshep ca>
 
diff --git a/plugins/fn-stat/functions.c b/plugins/fn-stat/functions.c
index f98f2f8..227c99c 100644
--- a/plugins/fn-stat/functions.c
+++ b/plugins/fn-stat/functions.c
@@ -3180,7 +3180,7 @@ gnm_reg_data_collect (GnmValue const *yval, GnmValue const *xval,
 	int ny;
 	GnmValue *result = NULL;
 
-	memset (data, 0, sizeof (data));
+	memset (data, 0, sizeof (*data));
 
 	/* Blanks, bools, strings, errors all are forbidden.  */
 	data->ys = collect_floats_value (yval, ep, 0,



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