gh-143309: fix UAF in `os.execve` when the environment is concurrentl… · python/cpython@9609574 · GitHub
Skip to content

Commit 9609574

Browse files
authored
gh-143309: fix UAF in os.execve when the environment is concurrently mutated (#143314)
1 parent 6c53af1 commit 9609574

3 files changed

Lines changed: 60 additions & 18 deletions

File tree

Lib/test/test_os/test_os.py

Lines changed: 34 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix a crash in :func:`os.execve` on non-Windows platforms when
2+
given a custom environment mapping which is then mutated during
3+
parsing. Patch by Bénédikt Tran.

Modules/posixmodule.c

Lines changed: 23 additions & 18 deletions

0 commit comments

Comments
 (0)