]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113841: fix possible undefined division by 0 in _Py_c_pow() (GH-127211)
authorSergey B Kirpichev <skirpichev@gmail.com>
Sun, 24 Nov 2024 07:37:37 +0000 (10:37 +0300)
committerGitHub <noreply@github.com>
Sun, 24 Nov 2024 07:37:37 +0000 (23:37 -0800)
commitf7bb658124aba74be4c13f498bf46cfded710ef9
treebe3f2fdeda629af39f82d9911dc54f2717bfa60b
parenta4d4c1ede21f9fa72280f4fc0f50212eecfac9ae
gh-113841: fix possible undefined division by 0 in _Py_c_pow() (GH-127211)

`x**y == 1/x**-y ` thus changing `/=` to `*=` by negating the exponent.
Lib/test/test_complex.py
Misc/NEWS.d/next/Core_and_Builtins/2024-11-24-07-01-28.gh-issue-113841.WFg-Bu.rst [new file with mode: 0644]
Objects/complexobject.c