aboutsummaryrefslogtreecommitdiffstats
path: root/main/musl/0005-env-avoid-leaving-dangling-pointers-in-__env_map.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-07-06 13:26:47 +0300
committerTimo Teräs <timo.teras@iki.fi>2016-07-06 13:27:33 +0300
commit76089bf10229719b51cd2790c36b20920f4a7933 (patch)
treec3eb34fb43fe2c87fb34dbd8c53b6df7a811d3ce /main/musl/0005-env-avoid-leaving-dangling-pointers-in-__env_map.patch
parent2867d304f9c04812d4a029d518159411ecf944c2 (diff)
downloadaports-76089bf10229719b51cd2790c36b20920f4a7933.tar.gz
aports-76089bf10229719b51cd2790c36b20920f4a7933.tar.bz2
aports-76089bf10229719b51cd2790c36b20920f4a7933.tar.xz
main/musl: upgrade to 1.1.15
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.patch27
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
-