-
- Downloads
Bug 1752703 - Add interposers for functions manipulating the environment to...
Bug 1752703 - Add interposers for functions manipulating the environment to prevent crashes r=glandium This add interposers for getenv(), putenv(), setenv(), unsetenv() and clearenv(). All interposers use a single lock for synchronization while internally using the libc-provided functions. This is done to prevent races that typically happen in Firefox code when multiple threads call getenv() while others are changing variables using setenv() and putenv(). Differential Revision: https://phabricator.services.mozilla.com/D164471
mozglue/interposers/env_interposer.cpp
0 → 100644
Please register or sign in to comment