[gnumeric] Fuzzed file fix.



commit 4dcc56c4fe5752e42d57fc61b3d080bb72a371c4
Author: Morten Welinder <terra gnome org>
Date:   Mon Jun 1 10:54:52 2015 -0400

    Fuzzed file fix.

 plugins/excel/ms-obj.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/excel/ms-obj.c b/plugins/excel/ms-obj.c
index 9b6b02f..70a4a32 100644
--- a/plugins/excel/ms-obj.c
+++ b/plugins/excel/ms-obj.c
@@ -1302,8 +1302,8 @@ ms_read_OBJ (BiffQuery *q, MSContainer *c, MSObjAttrBag *attrs)
        }
 
        obj->excel_type_name = NULL;
-       if (obj->excel_type < (int)G_N_ELEMENTS (object_type_names))
-               obj->excel_type_name = object_type_names [obj->excel_type];
+       if ((size_t)obj->excel_type < G_N_ELEMENTS (object_type_names))
+               obj->excel_type_name = object_type_names[obj->excel_type];
        if (obj->excel_type_name == NULL)
                obj->excel_type_name = "Unknown";
 


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