]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43423 Fix IndexError in subprocess _communicate function (GH-24777)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 12 Mar 2021 01:52:50 +0000 (17:52 -0800)
committerGitHub <noreply@github.com>
Fri, 12 Mar 2021 01:52:50 +0000 (17:52 -0800)
commit1a5001c606b55226c03fa1046aa8f5e1db2fa67d
tree0b21b5238585b24fb497a85ad59d12de3e576073
parentac5e23c540f5ec20fc390c72e097e0fdaf8b7ac9
bpo-43423 Fix IndexError in subprocess _communicate function (GH-24777)

Check to make sure stdout and stderr are not empty before selecting an item from them in Windows subprocess._communicate.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit b4fc44bb2d209182390b4f9fdf074a46b0165a2f)

Co-authored-by: Chris Griffith <chris@cdgriffith.com>
Lib/subprocess.py
Misc/NEWS.d/next/Library/2021-03-11-15-44-18.bpo-43423.rRomRD.rst [new file with mode: 0644]