Commit 0cf31bcf authored by Morten Welinder's avatar Morten Welinder

xls: fuzzed file fix.

parent 5f43352c
2016-01-03 Morten Welinder <terra@gnome.org>
* src/sheet-style.c (sheet_style_apply_range)
(sheet_style_set_range): Ensure sanity of range. Fixes #760102.
2016-01-02 Morten Welinder <terra@gnome.org>
* src/mathfunc.c (expmx2h): Explicitly handle nan, just in case.
......
......@@ -9,7 +9,7 @@ Morten:
* Teach ssconvert to split sheets into separate .txt files [#694408]
* Improve test suite.
* Fuzzed file fixes. [#760046] [#760085] [#760087] [#760089]
[#760043] [#760103]
[#760043] [#760103] [#760102]
--------------------------------------------------------------------------
Gnumeric 1.12.26
......
......@@ -1375,14 +1375,19 @@ sheet_style_set_range (Sheet *sheet, GnmRange const *range,
GnmStyle *style)
{
ReplacementStyle rs;
GnmRange r;
g_return_if_fail (IS_SHEET (sheet));
g_return_if_fail (range != NULL);
g_return_if_fail (range_is_sane (range));
r = *range;
range_ensure_sanity (&r, sheet);
rstyle_ctor_style (&rs, style, sheet);
cell_tile_apply (&sheet->style_data->styles,
sheet->tile_top_level, 0, 0,
range, &rs);
&r, &rs);
rstyle_dtor (&rs);
}
......@@ -1761,14 +1766,19 @@ void
sheet_style_apply_range (Sheet *sheet, GnmRange const *range, GnmStyle *pstyle)
{
ReplacementStyle rs;
GnmRange r;
g_return_if_fail (IS_SHEET (sheet));
g_return_if_fail (range != NULL);
g_return_if_fail (range_is_sane (range));
r = *range;
range_ensure_sanity (&r, sheet);
rstyle_ctor_pstyle (&rs, pstyle, sheet);
cell_tile_apply (&sheet->style_data->styles,
sheet->tile_top_level, 0, 0,
range, &rs);
&r, &rs);
rstyle_dtor (&rs);
}
......
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