mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
[3.6] bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). (GH-1110) (#1186)
(cherry picked from commit 66bffd1
)
This commit is contained in:
parent
39dedb6e1a
commit
e254617262
5 changed files with 41 additions and 26 deletions
|
@ -386,7 +386,7 @@ def _close_stdin():
|
|||
|
||||
def spawnv_passfds(path, args, passfds):
|
||||
import _posixsubprocess
|
||||
passfds = sorted(passfds)
|
||||
passfds = tuple(sorted(map(int, passfds)))
|
||||
errpipe_read, errpipe_write = os.pipe()
|
||||
try:
|
||||
return _posixsubprocess.fork_exec(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue