jsuya pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=8265c6a98f4720a5b58c068a0495dd1a52d90470
commit 8265c6a98f4720a5b58c068a0495dd1a52d90470 Author: Wonki Kim <[email protected]> Date: Wed Aug 5 17:02:13 2020 +0900 evas/engine: fix a potentional error of null deref Summary: this is a patch to fix a potentional error by null dereferencing. Reviewers: jsuya, bu5hm4n, Hermet Reviewed By: jsuya, bu5hm4n Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12091 --- src/modules/evas/engines/wayland_shm/evas_engine.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/evas/engines/wayland_shm/evas_engine.c b/src/modules/evas/engines/wayland_shm/evas_engine.c index 3a3623a567..041dfa9e54 100644 --- a/src/modules/evas/engines/wayland_shm/evas_engine.c +++ b/src/modules/evas/engines/wayland_shm/evas_engine.c @@ -243,6 +243,8 @@ eng_image_native_set(void *engine EINA_UNUSED, void *image, void *native) NULL, 1, EVAS_COLORSPACE_ARGB8888); + EINA_SAFETY_ON_NULL_RETURN_VAL(im2, im); + if (im->native.data) { if (im->native.func.free) --
