If the pdirection is NULL, it can be negative value. Then, it can make overflow.
So, this patch added the checking when it is NULL and added return at that time.
Change-Id: I5be78b7cf934cb30f813b8bfafdbb0c86f6a7cf6
Eina_Bool _vc_elm_core_get_object_hint_direction(Evas_Object *obj, vc_elm_direction_e *direction)
{
intptr_t pdirection = (intptr_t)evas_object_data_get(obj, VC_ELM_DIRECTION);
+ if (!pdirection)
+ return EINA_FALSE;
*direction = (vc_elm_direction_e)pdirection - 1;
return EINA_TRUE;
}