]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42146: Fix memory leak in subprocess.Popen() in case of uid/gid overflow (GH...
authorAlexey Izbyshev <izbyshev@ispras.ru>
Mon, 26 Oct 2020 00:09:32 +0000 (03:09 +0300)
committerGitHub <noreply@github.com>
Mon, 26 Oct 2020 00:09:32 +0000 (17:09 -0700)
commitc0590c0033e86f98cdf5f2ca6898656f98ab4053
treebf2e01413ef7171bfc87b0802a201635515c2413
parente68c67805e6a4c4ec80bea64be0e8373cc02d322
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`.
Lib/test/test_subprocess.py
Misc/NEWS.d/next/Library/2020-10-25-19-25-02.bpo-42146.6A8uvS.rst [new file with mode: 0644]
Modules/_posixsubprocess.c