common: Add pointer checking to avoid invalid pointer access 52/318552/2 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20250123.170222
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 20 Jan 2025 05:55:17 +0000 (14:55 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 20 Jan 2025 12:20:02 +0000 (21:20 +0900)
To avoid invalid dereferencing, handling code is necessary.
Checking pointer parameter is added.

Change-Id: If7ac927039932b122fed927206add221c1e464b8
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/common/popup-ui-normal.c

index edf7edfc910e67ad28b5a143dabdef5390888768..baef2f0a4e2fbd4b5f49b96f31a490ee873793b2 100644 (file)
@@ -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);
 }