classification
Title: Possible segfaults when passing large sequences to os.posix_spawn()
Type: crash Stage: resolved
Components: Extension Modules Versions: Python 3.9, Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ZackerySpytz, miss-islington, pablogsal
Priority: normal Keywords: patch

Created on 2019-06-26 19:24 by ZackerySpytz, last changed 2019-06-26 21:20 by miss-islington. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 14409 merged ZackerySpytz, 2019-06-26 19:30
PR 14413 merged miss-islington, 2019-06-26 20:54
Messages (3)
msg346669 - (view) Author: Zackery Spytz (ZackerySpytz) * (Python triager) Date: 2019-06-26 19:24
parse_file_actions() uses an int as it loops over the passed sequence, but it should use a Py_ssize_t. If the sequence is large enough, the int will overflow.
msg346678 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2019-06-26 20:54
New changeset d52a83a3d471ff3c7e9ebfa1731765e5334f7c24 by Pablo Galindo (Zackery Spytz) in branch 'master':
bpo-37419: Fix possible segfaults when passing large sequences to os.posix_spawn() (GH-14409)
https://github.com/python/cpython/commit/d52a83a3d471ff3c7e9ebfa1731765e5334f7c24
msg346682 - (view) Author: miss-islington (miss-islington) Date: 2019-06-26 21:20
New changeset 04d4692579cc4e0204c7fbced3692f8aa4bbb857 by Miss Islington (bot) in branch '3.8':
bpo-37419: Fix possible segfaults when passing large sequences to os.posix_spawn() (GH-14409)
https://github.com/python/cpython/commit/04d4692579cc4e0204c7fbced3692f8aa4bbb857
History
Date User Action Args
2019-06-26 21:20:12miss-islingtonsetnosy: + miss-islington
messages: + msg346682
2019-06-26 20:55:07pablogsalsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-06-26 20:54:37miss-islingtonsetpull_requests: + pull_request14225
2019-06-26 20:54:31pablogsalsetnosy: + pablogsal
messages: + msg346678
2019-06-26 19:30:05ZackerySpytzsetkeywords: + patch
stage: patch review
pull_requests: + pull_request14221
2019-06-26 19:24:46ZackerySpytzcreate