]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-96821: Fix undefined behaviour in `_testcapimodule.c` (GH-96915) (GH-96926)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 19 Sep 2022 10:20:23 +0000 (03:20 -0700)
committerGitHub <noreply@github.com>
Mon, 19 Sep 2022 10:20:23 +0000 (18:20 +0800)
commit88a3f1873ec4e6d35b1736c480c7087e01fca40f
treec067861046782e324a1611c27b859256f2d62785
parentf4be544a0317fba25fad1e8a13d7f9f2f58f177d
gh-96821: Fix undefined behaviour in `_testcapimodule.c` (GH-96915) (GH-96926)

* 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