summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko2017-07-22 03:04:20 +0200
committerDenys Vlasenko2017-07-22 03:04:20 +0200
commite4f6bfd6fec87e8eb77f1a9fe34b8b7884ef9748 (patch)
tree7d0279df538daa9f4df7be4044cae4a2ffdfe023 /include
parentbbf17bbf326c7157ca237b9659472ddf7626e68d (diff)
downloadbusybox-e4f6bfd6fec87e8eb77f1a9fe34b8b7884ef9748.zip
busybox-e4f6bfd6fec87e8eb77f1a9fe34b8b7884ef9748.tar.gz
zcip: fix slow environment leak
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 0317c7d..6abf882 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1485,6 +1485,9 @@ extern void selinux_or_die(void) FAST_FUNC;
* HOME=pw->pw_dir
* SHELL=shell
* else does nothing
+ *
+ * NB: CHANGEENV and CLEARENV use setenv() - this leaks memory!
+ * If setup_environment() is used is vforked child, this leaks memory _in parent too_!
*/
#define SETUP_ENV_CHANGEENV (1 << 0)
#define SETUP_ENV_CLEARENV (1 << 1)