]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__index__...
authorBast <52266665+bast0006@users.noreply.github.com>
Sat, 12 Jul 2025 13:37:52 +0000 (06:37 -0700)
committerGitHub <noreply@github.com>
Sat, 12 Jul 2025 13:37:52 +0000 (13:37 +0000)
commit5e1e21dee35b8e9066692d08033bbbdb562e2c28
tree8635afdc411a1e92716256151ac675eaa779fa83
parent25335d297b5248922a4c82183bcdf0c0ada8352b
gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__index__` has side-effects (#132379)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Lib/test/test_bytes.py
Misc/NEWS.d/next/Core_and_Builtins/2025-05-17-20-56-05.gh-issue-91153.afgtG2.rst [new file with mode: 0644]
Objects/bytearrayobject.c