]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34973: Fix crash in bytes constructor. (GH-9841) 10038/head
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 21 Oct 2018 12:55:52 +0000 (05:55 -0700)
committerGitHub <noreply@github.com>
Sun, 21 Oct 2018 12:55:52 +0000 (05:55 -0700)
commit7f34d550231e047c88a1817b58bda03a33817490
tree0b1f4145067a2fa34303a0ba29a17a8d4d2fbd66
parent002aef3f66a9f8da635e20860622f2e539a0b611
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