hermet pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=979757c8456b1d9b62d8cc1cf247f943de9c10d7
commit 979757c8456b1d9b62d8cc1cf247f943de9c10d7 Author: Wonki Kim <wonki_....@samsung.com> Date: Tue Aug 27 20:25:02 2019 +0900 eina_vpath: add null checking logic on vpath_resolve api Summary: there is a patch that add vpath_resolve() call before eina_file_open() because `path` arg could be NULL, the patch kills some applications. this patch add null checking logic on vpath_resolve api Reviewers: bu5hm4n, cedric, Hermet Reviewed By: Hermet Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9748 --- src/lib/eina/eina_vpath.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/eina/eina_vpath.c b/src/lib/eina/eina_vpath.c index 78ae6a250d..ac2d6ca9e2 100644 --- a/src/lib/eina/eina_vpath.c +++ b/src/lib/eina/eina_vpath.c @@ -327,6 +327,7 @@ EAPI char * eina_vpath_resolve(const char* path) { char buf[PATH_MAX]; + EINA_SAFETY_ON_NULL_RETURN_VAL(path, NULL); if (_eina_vpath_resolve(path, buf, sizeof(buf)) > 0) return strdup(buf); --