From: Mun, Gwan-gyeong Date: Mon, 12 Oct 2015 12:19:59 +0000 (+0900) Subject: e_client: fix memory illegal access X-Git-Tag: accepted/tizen/mobile/20151014.043159~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F49317%2F2;p=platform%2Fupstream%2Fenlightenment.git e_client: fix memory illegal access Change-Id: I07dbf5b72d09e07aeb764c1fe6cc66da691f0679 --- diff --git a/src/bin/e_client.c b/src/bin/e_client.c index 50c537b..562cf84 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -3798,10 +3798,10 @@ e_client_below_get(const E_Client *ec) return ec2; } } - if (ec->layer == E_LAYER_CLIENT_DESKTOP) return NULL; - if (e_comp_canvas_client_layer_map(ec->layer) == 9999) return NULL; /* go down the layers until we find one */ + if (e_comp_canvas_layer_map(ec->layer) == 9999) return NULL; + if (e_comp_canvas_layer_map(ec->layer) <= e_comp_canvas_layer_map(E_LAYER_CLIENT_DESKTOP)) return NULL; for (x = e_comp_canvas_layer_map(ec->layer) - 1; x >= e_comp_canvas_layer_map(E_LAYER_CLIENT_DESKTOP); x--) { if (!ec->comp->layers[x].clients) continue;