]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208)
authorTobias Holl <TobiasHoll@users.noreply.github.com>
Wed, 13 Jan 2021 16:16:40 +0000 (17:16 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Jan 2021 16:16:40 +0000 (18:16 +0200)
commit61d8c54f43a7871d016f98b38f86858817d927d5
treeb1c2951dafa73681eb7f7dd486fac5fd8c06c3fc
parent1659ad1c644240d3db1d65e782c8c53b4c4e71ea
bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208)

Before, using the * operator to repeat a bytearray would copy data from the start of
the internal buffer (ob_bytes) and not from the start of the actual data (ob_start).
Lib/test/test_bytes.py
Misc/NEWS.d/next/Core and Builtins/2021-01-13-14-06-01.bpo-42924._WS1Ok.rst [new file with mode: 0644]
Objects/bytearrayobject.c