]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__ind...
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sat, 12 Jul 2025 14:34:45 +0000 (16:34 +0200)
committerGitHub <noreply@github.com>
Sat, 12 Jul 2025 14:34:45 +0000 (16:34 +0200)
commit360540fd47d282721214f45ba05b6b9a57d972a7
treed6ab3a4ad8bdcd27e524ea20e897aa30ccbf4878
parent6176101b4a3cf6094b75e3d1d3852807f8544306
[3.13] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)` when `ind.__index__` has side-effects (GH-132379) (#136582)

(cherry picked from commit 5e1e21dee35b8e9066692d08033bbbdb562e2c28)

Co-authored-by: Bast <52266665+bast0006@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