widget: initialize local variable 72/135772/1 accepted/tizen/3.0/common/20170627.122936 accepted/tizen/3.0/ivi/20170626.222348 accepted/tizen/3.0/mobile/20170626.222405 accepted/tizen/3.0/tv/20170626.222344 accepted/tizen/3.0/wearable/20170626.222340 submit/tizen_3.0/20170626.103050
authorShinwoo Kim <cinoo.kim@samsung.com>
Thu, 8 Jun 2017 11:33:55 +0000 (20:33 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Mon, 26 Jun 2017 09:53:38 +0000 (18:53 +0900)
Uninitialized data is read from local variable 'ow', and 'oh'

Change-Id: Ib042ba64a88d82fa883f08c08851ee44c0a9a2da

src/lib/elm_widget.c

index 6f936dc365c5f6d785f3dc1af69ca1f58aa9e99d..ed9bdf39671d6fd952a0f3e07fcf27675cabcd93 100644 (file)
@@ -6366,6 +6366,10 @@ _accessible_object_on_screen_is(Eo *obj, Evas_Coord x, Evas_Coord y, Evas_Coord
    Evas_Object *parent = NULL;
    Evas_Coord px, py, sx, sy, sw, sh, ox, oy, ow, oh;
 
+   /* uninitialized data could be read */
+   ow = 0;
+   oh = 0;
+
    if (elm_widget_is(target))
      parent = elm_widget_parent_get(target);
    else