From f5519a2826f1831cc5056da67e42422321577836 Mon Sep 17 00:00:00 2001 From: "Myoungwoon Roy, Kim" Date: Mon, 22 Jan 2018 18:50:26 +0900 Subject: [PATCH] ecore_main: Check for null ptr deref This patch fixes a tentative crash owing to dereference of fd_handler. Change-Id: I136473869f4babfec95039609609306a2feb4692 --- src/lib/ecore/ecore_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c index 988b857..bb0321d 100644 --- a/src/lib/ecore/ecore_main.c +++ b/src/lib/ecore/ecore_main.c @@ -1614,6 +1614,7 @@ ecore_main_fd_handler_prepare_callback_set(Ecore_Fd_Handler *fd_handler, Ecore_Fd_Prep_Cb func, const void *data) { + if (!fd_handler) return; Efl_Loop_Data *pd = fd_handler->loop_data; EINA_MAIN_LOOP_CHECK_RETURN; -- 2.7.4