HomeFreeBSD

Using putenv() and later direct pointer contents modification it is possibe

Description

Using putenv() and later direct pointer contents modification it is possibe
to craft environment variables with similar names like that:
a=1
a=2
...
unsetenv("a") should remove them all to make later getenv("a") impossible.
Fix it to do so (this is GNU autoconf test #3 failure too).

PR: 172273
MFC after: 1 week

Details

Provenance
acheAuthored on Oct 2 2012, 5:44 PM
Parents
rG4544286921ad: Fix alignment related warnings reported by gcc
Branches
Unknown
Tags
Unknown

Event Timeline