]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-143195: fix UAF in `{bytearray,memoryview}.hex(sep)` via re-entrant `sep...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 27 Dec 2025 13:57:41 +0000 (14:57 +0100)
committerGitHub <noreply@github.com>
Sat, 27 Dec 2025 13:57:41 +0000 (13:57 +0000)
commit93029e45b7132640af7ad55600fcdb8afdf2ca12
tree5fca1d93fc754c51ffe7e35f4525be56b4439d0b
parentcb8b96ed25070ea7107ecda8ea7a38a56db73fa8
[3.14] gh-143195: fix UAF in `{bytearray,memoryview}.hex(sep)` via re-entrant `sep.__len__` (GH-143209) (#143219)

gh-143195: fix UAF in `{bytearray,memoryview}.hex(sep)` via re-entrant `sep.__len__` (GH-143209)
(cherry picked from commit 9976c2b6349a079ae39931d960b8c147e21c6c3f)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Lib/test/test_bytes.py
Lib/test/test_memoryview.py
Misc/NEWS.d/next/Core_and_Builtins/2025-12-27-10-14-26.gh-issue-143195.MNldfr.rst [new file with mode: 0644]
Objects/bytearrayobject.c
Objects/memoryobject.c