]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-114685: Check flags in PyObject_GetBuffer() (GH-114707)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 31 Jan 2024 11:11:35 +0000 (13:11 +0200)
committerGitHub <noreply@github.com>
Wed, 31 Jan 2024 11:11:35 +0000 (13:11 +0200)
commitb7688ef71eddcaf14f71b1c22ff2f164f34b2c74
tree08f81ce254f5876bd674d680c5e20050cf6f7c49
parent7a93db44257c0404dc407ff2ddc997f4bb8890ed
gh-114685: Check flags in PyObject_GetBuffer() (GH-114707)

PyObject_GetBuffer() now raises a SystemError if called with
PyBUF_READ or PyBUF_WRITE as flags. These flags should
only be used with the PyMemoryView_* C API.
Lib/test/test_buffer.py
Misc/NEWS.d/next/C API/2024-01-29-12-13-24.gh-issue-114685.B07RME.rst [new file with mode: 0644]
Modules/_testcapi/buffer.c
Objects/abstract.c