]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-126594: Fix typeobject.c wrap_buffer() cast (GH-126754) (#127005)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 19 Nov 2024 08:33:18 +0000 (09:33 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Nov 2024 08:33:18 +0000 (08:33 +0000)
commit9345dc165c3389208da45d391bf5b2d146302e75
treeaaf91710491ccf862ddad0f19ac154a710a74e72
parent126acc1bb0782ac7b7944ba1d0f877da728967a7
[3.12] gh-126594: Fix typeobject.c wrap_buffer() cast (GH-126754) (#127005)

gh-126594: Fix typeobject.c wrap_buffer() cast (GH-126754)

Reject flags smaller than INT_MIN.

(cherry picked from commit 84f07c3a4cbcfe488ccfb4030571be0bc4de7e45)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Lib/test/test_buffer.py
Objects/typeobject.c