]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34973: Fix crash in bytes constructor. (GH-9841)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 21 Oct 2018 12:56:10 +0000 (05:56 -0700)
committerGitHub <noreply@github.com>
Sun, 21 Oct 2018 12:56:10 +0000 (05:56 -0700)
commit8bb037167cf3204a7d620ba11fbf43d2a9ec36e6
tree37acfe5845860d39aada14c730f030fcfe701abb
parentbeb83d013e0295c987087febf2be78b1da389b15
bpo-34973: Fix crash in bytes constructor. (GH-9841)

Constructing bytes from mutating list could cause a crash.
(cherry picked from commit 914f9a078f997e58cfcfabcbb30fafdd1f277bef)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_bytes.py
Misc/NEWS.d/next/Core and Builtins/2018-10-13-16-42-03.bpo-34973.B5M-3g.rst [new file with mode: 0644]
Objects/bytesobject.c