diff options
Diffstat (limited to 'main/musl/0005-env-avoid-leaving-dangling-pointers-in-__env_map.patch')
-rw-r--r-- | main/musl/0005-env-avoid-leaving-dangling-pointers-in-__env_map.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/main/musl/0005-env-avoid-leaving-dangling-pointers-in-__env_map.patch b/main/musl/0005-env-avoid-leaving-dangling-pointers-in-__env_map.patch deleted file mode 100644 index 411e802fd1..0000000000 --- a/main/musl/0005-env-avoid-leaving-dangling-pointers-in-__env_map.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 9543656cc32fda48fc463f332ee20e91eed2b768 Mon Sep 17 00:00:00 2001 -From: Alexander Monakov <amonakov@ispras.ru> -Date: Sun, 6 Mar 2016 20:22:38 +0300 -Subject: [PATCH] env: avoid leaving dangling pointers in __env_map - -This is the minimal fix for __putenv leaving a pointer to freed heap -storage in __env_map array, which could later on lead to errors such -as double-free. ---- - src/env/putenv.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/env/putenv.c b/src/env/putenv.c -index 4042869..7153042 100644 ---- a/src/env/putenv.c -+++ b/src/env/putenv.c -@@ -30,6 +30,7 @@ int __putenv(char *s, int a) - } - } else { - free(__env_map[j]); -+ __env_map[j] = s; - } - } - } --- -2.7.2 - |