From: Yunhee Seo Date: Mon, 20 Jan 2025 05:55:17 +0000 (+0900) Subject: common: Add pointer checking to avoid invalid pointer access X-Git-Tag: accepted/tizen/8.0/unified/20250123.170222^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_8.0;p=platform%2Fcore%2Fsystem%2Fsystem-popup.git 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 --- 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); }