aboutsummaryrefslogtreecommitdiff
path: root/Misc
diff options
context:
space:
mode:
authorTobias Holl <TobiasHoll@users.noreply.github.com>2021-01-13 17:16:40 +0100
committerGitHub <noreply@github.com>2021-01-13 18:16:40 +0200
commit61d8c54f43a7871d016f98b38f86858817d927d5 (patch)
treeb1c2951dafa73681eb7f7dd486fac5fd8c06c3fc /Misc
parentEliminate NOPs in extended blocks. (GH-24209) (diff)
downloadcpython-61d8c54f43a7871d016f98b38f86858817d927d5.tar.gz
cpython-61d8c54f43a7871d016f98b38f86858817d927d5.tar.bz2
cpython-61d8c54f43a7871d016f98b38f86858817d927d5.zip
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).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2021-01-13-14-06-01.bpo-42924._WS1Ok.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-01-13-14-06-01.bpo-42924._WS1Ok.rst b/Misc/NEWS.d/next/Core and Builtins/2021-01-13-14-06-01.bpo-42924._WS1Ok.rst
new file mode 100644
index 00000000000..33fbb5235dd
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2021-01-13-14-06-01.bpo-42924._WS1Ok.rst
@@ -0,0 +1 @@
+Fix ``bytearray`` repetition incorrectly copying data from the start of the buffer, even if the data is offset within the buffer (e.g. after reassigning a slice at the start of the ``bytearray`` to a shorter byte string).