]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-126594: Fix typeobject.c wrap_buffer() cast (GH-126754) (#127004)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 19 Nov 2024 08:38:06 +0000 (09:38 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Nov 2024 08:38:06 +0000 (08:38 +0000)
commitfd276ad3287939ff6f0c6832d76eaeda520fc038
treef1d8a3237113c7c0eb656f6fa4bc2062e4fa340a
parent190d710e681652e16a3ce1bf2801412dd4d47a9e
[3.13] gh-126594: Fix typeobject.c wrap_buffer() cast (GH-126754) (#127004)

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