From: Jongmin Lee Date: Wed, 6 May 2020 00:45:35 +0000 (+0900) Subject: e_mod_screen_reader_gestures: fix dereference null return value X-Git-Tag: accepted/tizen/unified/20200510.220348^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c1d22d4fcef8a2bc1e531b2812264891b432018;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-screen-reader.git e_mod_screen_reader_gestures: fix dereference null return value Change-Id: Ie23500c8795e95f9d9ab11817acb9721d0665ae2 --- diff --git a/src/e_screen_reader_gestures.c b/src/e_screen_reader_gestures.c index cede02e..c2bc1e8 100644 --- a/src/e_screen_reader_gestures.c +++ b/src/e_screen_reader_gestures.c @@ -1039,6 +1039,11 @@ _hover_event_emit(Cover *cov, gesture_state_e state) cov->hover_gesture.atspi_mouse_down_emitted = EINA_TRUE; _emit_mouse_move_event(&cov->hover_gesture.ev_first_down); Ecore_Event_Mouse_Button *ev = malloc(sizeof(Ecore_Event_Mouse_Button)); + if (!ev) + { + DEBUG("NOT ENOUGH MEMORY"); + return; + } memcpy(ev, &cov->hover_gesture.ev_first_down, sizeof(*ev)); ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_DOWN, ev, NULL, NULL); }