]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__ind...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 12 Jul 2025 14:38:57 +0000 (16:38 +0200)
committerGitHub <noreply@github.com>
Sat, 12 Jul 2025 14:38:57 +0000 (14:38 +0000)
commitd5866a8e8432c15eac65a3059d71bc60d9aa61bf
tree2d58f7c1160ca3b989243234e5df33ad38f5df0c
parentc71ecd14188e6c158fee27a9c2ae75bf69f55f52
[3.14] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__index__` has side-effects (GH-132379) (#136581)

gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__index__` has side-effects (GH-132379)
(cherry picked from commit 5e1e21dee35b8e9066692d08033bbbdb562e2c28)

Co-authored-by: Bast <52266665+bast0006@users.noreply.github.com>
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