summaryrefslogtreecommitdiffstats
path: root/Python/importlib_external.h
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-12-06 19:32:33 (GMT)
committerGitHub <noreply@github.com>2019-12-06 19:32:33 (GMT)
commit836cf31a3cf468ed9598a220b8e194b366287bfe (patch)
treed8786067ffb5bc34e0af80564e0912f961547ba8 /Python/importlib_external.h
parentc9f480d2ccda9de46584cabe086f0acfa45f2faf (diff)
downloadcpython-836cf31a3cf468ed9598a220b8e194b366287bfe.zip
cpython-836cf31a3cf468ed9598a220b8e194b366287bfe.tar.gz
cpython-836cf31a3cf468ed9598a220b8e194b366287bfe.tar.bz2
bpo-37931: Fix crash on OSX re-initializing os.environ (GH-15428)
On most platforms, the `environ` symbol is accessible everywhere. In a dylib on OSX, it's not easily accessible, you need to find it with _NSGetEnviron. The code was caching the *value* of environ. But a setenv() can change the value, leaving garbage at the old value. Fix: don't cache the value of environ, just read it every time. (cherry picked from commit 723f71abf7ab0a7be394f9f7b2daa9ecdf6fb1eb) Co-authored-by: Benoit Hudson <benoit@imgspc.com>
Diffstat (limited to 'Python/importlib_external.h')
0 files changed, 0 insertions, 0 deletions