diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-22 03:04:20 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-22 03:04:20 +0200 |
| commit | e4f6bfd6fec87e8eb77f1a9fe34b8b7884ef9748 (patch) | |
| tree | 7d0279df538daa9f4df7be4044cae4a2ffdfe023 /include | |
| parent | bbf17bbf326c7157ca237b9659472ddf7626e68d (diff) | |
| download | busybox-w32-e4f6bfd6fec87e8eb77f1a9fe34b8b7884ef9748.tar.gz busybox-w32-e4f6bfd6fec87e8eb77f1a9fe34b8b7884ef9748.tar.bz2 busybox-w32-e4f6bfd6fec87e8eb77f1a9fe34b8b7884ef9748.zip | |
zcip: fix slow environment leak
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 0317c7d6a..6abf88218 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -1485,6 +1485,9 @@ extern void selinux_or_die(void) FAST_FUNC; | |||
| 1485 | * HOME=pw->pw_dir | 1485 | * HOME=pw->pw_dir |
| 1486 | * SHELL=shell | 1486 | * SHELL=shell |
| 1487 | * else does nothing | 1487 | * else does nothing |
| 1488 | * | ||
| 1489 | * NB: CHANGEENV and CLEARENV use setenv() - this leaks memory! | ||
| 1490 | * If setup_environment() is used is vforked child, this leaks memory _in parent too_! | ||
| 1488 | */ | 1491 | */ |
| 1489 | #define SETUP_ENV_CHANGEENV (1 << 0) | 1492 | #define SETUP_ENV_CHANGEENV (1 << 0) |
| 1490 | #define SETUP_ENV_CLEARENV (1 << 1) | 1493 | #define SETUP_ENV_CLEARENV (1 << 1) |
