hermet pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=f4164bbcb8ab18f053ee40fe5f5e4fc02a4e058f
commit f4164bbcb8ab18f053ee40fe5f5e4fc02a4e058f Author: JunsuChoi <[email protected]> Date: Thu Mar 12 14:43:37 2020 +0900 edje_util: Prevent null pointer access Summary: locale can be null. so add null check. Test Plan: N/A Reviewers: Hermet, kimcinoo, herb Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11490 --- src/lib/edje/edje_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c index 67b458495d..a8071531e1 100644 --- a/src/lib/edje/edje_util.c +++ b/src/lib/edje/edje_util.c @@ -326,6 +326,7 @@ edje_language_set(const char *locale) char *loc; int length; + if (!locale) return; lookup = strstr(locale, "."); length = lookup ? lookup - locale : (int)strlen(locale); loc = alloca(length + 1); --
