From 8ff092561315ee5ede7594f525c7bafc49c7e999 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 28 Jul 2017 13:49:30 -0400 Subject: [PATCH] reject invalid comp object resizes interceptors are called before any of the normal evas object geometry validations, so ensure that invalid sizes are not applied --- src/bin/e_comp_object.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index bd5c20934..8d7eae819 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -1146,6 +1146,8 @@ _e_comp_intercept_resize(void *data, Evas_Object *obj, int w, int h) E_Comp_Object *cw = data; int pw = 0, ph = 0, fw, fh, iw, ih, prev_w, prev_h, x, y; + + if ((w < 1) || (h < 1)) return; /* if frame_object does not exist, client_inset indicates CSD. * this means that ec->client matches cw->w/h, the opposite * of SSD.