From a28bfde03f5884e96ab41fa415729aef04ebbd0a Mon Sep 17 00:00:00 2001 From: Michal Szczecinski Date: Fri, 16 Jul 2021 08:57:56 +0200 Subject: [PATCH] evas: ++safety. Added possible null dereference check in evas object clipping recalculation. Change-Id: I353d09809d7884b0d827a914199ac4dba6dd8958 --- src/lib/evas/canvas/evas_object_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/evas_object_main.c b/src/lib/evas/canvas/evas_object_main.c index 55ace3c..bc440ab 100644 --- a/src/lib/evas/canvas/evas_object_main.c +++ b/src/lib/evas/canvas/evas_object_main.c @@ -332,7 +332,7 @@ evas_object_clip_recalc_do(Evas_Object_Protected_Data *obj, Evas_Object_Protecte } obj->clip.prev_mask = NULL; - if (EINA_UNLIKELY(clipper->mask->is_mask)) + if (clipper->mask && EINA_UNLIKELY(clipper->mask->is_mask)) { // Set complex masks the object being clipped (parent) obj->clip.mask = clipper; -- 2.7.4