]> granicus.if.org Git - python/commit
[2.7] bpo-31752: Fix possible crash in timedelta constructor called with custom integ...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 23 Oct 2017 16:57:04 +0000 (19:57 +0300)
committerGitHub <noreply@github.com>
Mon, 23 Oct 2017 16:57:04 +0000 (19:57 +0300)
commit5ef883b096895a84123760859f0f34ad37bf2277
tree4c6b14625df7fe8699ae86a64b7e30e74515d765
parentf7d19b0464cb89ec696affbad9fd7e7c94456eaf
[2.7] bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (GH-3947) (#4088)

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