2 ms·
You would still need to design a fix. You'll probably either break programs that modify the pointer returned by getenv() while doing so. However, this only mak
by jeroenhd 3y ago
You would still need to design a fix. You'll probably either break programs that modify the pointer returned by getenv() while doing so.
However, this only makes sense for other people's software crashing on getenv() related memory bugs. If you control the software, you can simply prevent the setenv() call yourself. No need to LD_PRELOAD anything, just load a library or write your own hooking code to work around the POSIX madness.