summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAlexey Izbyshev <izbyshev@ispras.ru>2020-10-26 00:09:32 (GMT)
committerGitHub <noreply@github.com>2020-10-26 00:09:32 (GMT)
commitc0590c0033e86f98cdf5f2ca6898656f98ab4053 (patch)
treebf2e01413ef7171bfc87b0802a201635515c2413 /Misc
parente68c67805e6a4c4ec80bea64be0e8373cc02d322 (diff)
downloadcpython-c0590c0033e86f98cdf5f2ca6898656f98ab4053.zip
cpython-c0590c0033e86f98cdf5f2ca6898656f98ab4053.tar.gz
cpython-c0590c0033e86f98cdf5f2ca6898656f98ab4053.tar.bz2
bpo-42146: Fix memory leak in subprocess.Popen() in case of uid/gid overflow (GH-22966)
Fix memory leak in subprocess.Popen() in case of uid/gid overflow Also add a test that would catch this leak with `--huntrleaks`. Alas, the test for `extra_groups` also exposes an inconsistency in our error reporting: we use a custom ValueError for `extra_groups`, but propagate OverflowError for `user` and `group`.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-10-25-19-25-02.bpo-42146.6A8uvS.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-10-25-19-25-02.bpo-42146.6A8uvS.rst b/Misc/NEWS.d/next/Library/2020-10-25-19-25-02.bpo-42146.6A8uvS.rst
new file mode 100644
index 0000000..0418098
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-10-25-19-25-02.bpo-42146.6A8uvS.rst
@@ -0,0 +1,2 @@
+Fix memory leak in :func:`subprocess.Popen` in case an uid (gid) specified in
+`user` (`group`, `extra_groups`) overflows `uid_t` (`gid_t`).