]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39871: Fix possible SystemError in atan2, copysign and remainder (GH-18806)
authorZackery Spytz <zspytz@gmail.com>
Sat, 14 Mar 2020 10:45:32 +0000 (04:45 -0600)
committerGitHub <noreply@github.com>
Sat, 14 Mar 2020 10:45:32 +0000 (10:45 +0000)
commit5208b4b37953a406db0ed6a9db545c2948dde989
tree249b714d2e6476f7aced7368ad4bb18c929a13f3
parent3a8c56295d6272ad2177d2de8af4c3f824f3ef92
bpo-39871: Fix possible SystemError in atan2, copysign and remainder (GH-18806)

In math_2(), the first PyFloat_AsDouble() call should be checked
for failure before the second call.

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Lib/test/test_math.py
Misc/NEWS.d/next/Core and Builtins/2020-03-06-06-12-37.bpo-39871.dCAj_2.rst [new file with mode: 0644]
Modules/mathmodule.c