diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-04-19 18:12:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 18:12:46 (GMT) |
commit | 66bffd1663489d080349debbf1b472d432351038 (patch) | |
tree | bdbec28fed6a4e3ab35d620aaafb5193bab12557 /Lib/subprocess.py | |
parent | a79f4c219531c05fc8f670c1e4bbf12c081935d3 (diff) | |
download | cpython-66bffd1663489d080349debbf1b472d432351038.zip cpython-66bffd1663489d080349debbf1b472d432351038.tar.gz cpython-66bffd1663489d080349debbf1b472d432351038.tar.bz2 |
bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). (#1110)
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r-- | Lib/subprocess.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 76c340c..551aad3 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -1252,7 +1252,8 @@ class Popen(object): fds_to_keep.add(errpipe_write) self.pid = _posixsubprocess.fork_exec( args, executable_list, - close_fds, sorted(fds_to_keep), cwd, env_list, + close_fds, tuple(sorted(map(int, fds_to_keep))), + cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, |