]> granicus.if.org Git - python/commit
bpo-31752: Fix possible crash in timedelta constructor called with custom integers...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 23 Oct 2017 14:12:28 +0000 (17:12 +0300)
committerGitHub <noreply@github.com>
Mon, 23 Oct 2017 14:12:28 +0000 (17:12 +0300)
commit4ffd4653a7ec9c97775472276cf5e159e2366bb2
treedde6087a2aa8c149de6cc7894a5e809ba4f2b32a
parent7fed7bd8bb628f0f09c6011871a4ce68afb41b18
bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (#3947)

Bad remainder in divmod() in intermediate calculations caused an assertion failure.
Lib/test/datetimetester.py
Misc/NEWS.d/next/Library/2017-10-11-00-45-01.bpo-31752.DhWevN.rst [new file with mode: 0644]
Modules/_datetimemodule.c