Commit d744f379 authored by Morten Welinder's avatar Morten Welinder

Database: don't allow array databases.

The code clearly wants a cell range.  That may not be right, but peeking
into random memory based on the wrong struct layout isn't the solution.
parent c57ea4f5
2016-01-30 Morten Welinder <terra@gnome.org>
* src/value.c (find_column_of_field): Insist that the database be
a cell range, not an array.
2016-01-29 Morten Welinder <terra@gnome.org>
* src/sf-bessel.c (gnm_bessel_i): Use series for small x.
......
......@@ -24,6 +24,7 @@ Morten:
* Work around gtk+ bug causing growing windows. [#761142]
* Improve BESSELJ and BESSELY.
* Improve BETA accuracy.
* Fix problem with database functions. [#761305]
--------------------------------------------------------------------------
Gnumeric 1.12.26
......
......@@ -1676,6 +1676,11 @@ find_column_of_field (GnmEvalPos const *ep,
int begin_col, end_col, row, n, column;
int offset;
// I'm not certain we shoul demand this, but the code clearly wants
// it.
if (!VALUE_IS_CELLRANGE (database))
return -1;
offset = database->v_range.cell.a.col;
if (VALUE_IS_FLOAT (field))
......
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