]> 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)
committerGitHub <noreply@github.com>
Mon, 19 Sep 2022 11:48:58 +0000 (19:48 +0800)
commit3bf8e0f487978b2c7396592816558ca852f846a1
treed0eebba6b43d68cfadbeb48b1e2a0f0ef03502d7
parent8e2bda8227e80444f9f3a1fe4e24d2d5f4f89385
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