Commit 42893618 authored by Jean Bréfort's avatar Jean Bréfort

Fix crash in exponential smoothing with invalid y data. [#377]

parent 6ee71a51
2019-01-15 Jean Brefort <jean.brefort@normalesup.org>
* plugins/smoothing/gog-exp-smooth.c (gog_exp_smooth_update): protect
against NULL y values. [#377]
2018-11-24 Morten Welinder <terra@gnome.org>
* goffice/math/go-quad.c: Introspection fixes.
......
goffice 0.10.45:
Jean:
* Fix crash in exponential smoothing with invalid y data. [#377]
Morten:
* Introspection fixes.
* Work around gtk-doc bugs.
......
......@@ -103,7 +103,7 @@ gog_exp_smooth_update (GogObject *obj)
return;
nb = gog_series_get_xy_data (series, &x_vals, &y_vals);
if (nb == 0)
if (nb == 0 || y_vals == NULL)
return;
x = g_new (double, nb);
y = g_new (double, nb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment