Commit c0590c0
Alexey Izbyshev
bpo-42146: Fix memory leak in subprocess.Popen() in case of uid/gid overflow (pythonGH-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`.1 parent e68c678 commit c0590c0
File tree
3 files changed
+17
-2
lines changed- Lib/test
- Misc/NEWS.d/next/Library
- Modules
3 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1895 | 1895 | | |
1896 | 1896 | | |
1897 | 1897 | | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
1898 | 1902 | | |
1899 | 1903 | | |
1900 | 1904 | | |
| |||
1938 | 1942 | | |
1939 | 1943 | | |
1940 | 1944 | | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
1941 | 1949 | | |
1942 | 1950 | | |
1943 | 1951 | | |
| |||
1986 | 1994 | | |
1987 | 1995 | | |
1988 | 1996 | | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
1989 | 2002 | | |
1990 | 2003 | | |
1991 | 2004 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
| 775 | + | |
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
| |||
894 | 894 | | |
895 | 895 | | |
896 | 896 | | |
897 | | - | |
898 | 897 | | |
899 | 898 | | |
900 | 899 | | |
| |||
1080 | 1079 | | |
1081 | 1080 | | |
1082 | 1081 | | |
| 1082 | + | |
1083 | 1083 | | |
1084 | 1084 | | |
1085 | 1085 | | |
| |||
0 commit comments