Gabriele Svelto 225e2adabb 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
2023-05-10 16:33:07 +00:00
..