Commit 7a8bedff authored by Morten Welinder's avatar Morten Welinder

xls: fix minor problem reading old objects.

parent b47069c9
......@@ -6,6 +6,7 @@ Andreas:
Morten:
* Fix problems with localized function docs.
* Plug leak.
* Fix minor problem reading old xls objects.
--------------------------------------------------------------------------
Gnumeric 1.10.14
......
2011-04-04 Morten Welinder <terra@gnome.org>
* ms-obj.c (ms_obj_read_pre_biff8_obj): Improve record length
check.
2011-03-24 Morten Welinder <terra@gnome.org>
* Release 1.10.14
......
......@@ -663,9 +663,10 @@ ms_obj_read_pre_biff8_obj (BiffQuery *q, MSContainer *c, MSObj *obj)
gboolean has_name;
guint8 *anchor;
XL_CHECK_CONDITION_VAL (q->length >= 32, TRUE);
XL_CHECK_CONDITION_VAL (q->length >= 26, TRUE);
has_name = GSF_LE_GET_GUINT16 (q->data+30) != 0; /* undocumented */
has_name = (q->length >= 32 &&
GSF_LE_GET_GUINT16 (q->data+30) != 0); /* undocumented */
#if 0
guint16 const flags = GSF_LE_GET_GUINT16(q->data+8);
#endif
......
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