]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-96821: Fix undefined behaviour in `_testcapimodule.c` (GH-96915) (GH-96927)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 19 Sep 2022 11:48:58 +0000 (04:48 -0700)
committerPablo Galindo <pablogsal@gmail.com>
Sat, 22 Oct 2022 19:54:47 +0000 (20:54 +0100)
commit9e008fe3519b6c08edc2f2363bc2eb4a4e044698
treed1d625654bba9eb4bc2a82ff68463615e7c0ac76
parentbac61bc5b132221dde406f0700e238c302029698
gh-96821: Fix undefined behaviour in `_testcapimodule.c` (GH-96915) (GH-96927)

* gh-96821: Assert for demonstrating undefined behaviour

* Fix UB

(cherry picked from commit cbdeda8ce7a3543cb3376d70e4cd46fcf24f42a7)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Matthias Görgens <matthias.goergens@gmail.com>
Misc/NEWS.d/next/Core and Builtins/2022-09-18-08-47-40.gh-issue-96821.Co2iOq.rst [new file with mode: 0644]
Modules/_testcapimodule.c