compose.c: fix untrusted source issue tizen_work_20231222
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 3 Jan 2024 08:23:23 +0000 (17:23 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 3 Jan 2024 08:23:23 +0000 (17:23 +0900)
Change-Id: Id9a599f66bb08aac580c6a25612f7016dac89f2f
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
test/compose.c

index 4f3ae17..4eda30b 100644 (file)
@@ -713,7 +713,7 @@ main(int argc, char *argv[])
      * explicitely when necessary.
      */
 #ifdef __linux__
-    const char *srcdir = getenv("top_srcdir");
+    const char *srcdir = secure_getenv("top_srcdir");
     clearenv();
     if (srcdir)
         setenv("top_srcdir", srcdir, 1);