From 3f0106ad5b11ac8da29bddc96f0fe624c4fdfa8d Mon Sep 17 00:00:00 2001 From: Yunhee Seo Date: Mon, 20 Jan 2025 14:55:17 +0900 Subject: [PATCH] common: Add pointer checking to avoid invalid pointer access To avoid invalid dereferencing, handling code is necessary. Checking pointer parameter is added. Change-Id: If7ac927039932b122fed927206add221c1e464b8 Signed-off-by: Yunhee Seo --- src/common/popup-ui-normal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/popup-ui-normal.c b/src/common/popup-ui-normal.c index edf7edf..baef2f0 100644 --- a/src/common/popup-ui-normal.c +++ b/src/common/popup-ui-normal.c @@ -28,7 +28,8 @@ void event_back_key_up(void *data, Evas_Object *obj, void *event_info) win = get_window(); if (win) { - _D("Unregister event back key. ops->name=%s", ops->name); + if (ops) + _D("Unregister event back key. ops->name=%s", ops->name); eext_object_event_callback_del(obj, EEXT_CALLBACK_BACK, event_back_key_up); } -- 2.34.1