]> granicus.if.org Git - python/commit
bpo-31752: Fix possible crash in timedelta constructor called with custom integers...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Oct 2017 15:20:13 +0000 (08:20 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 23 Oct 2017 15:20:13 +0000 (18:20 +0300)
commit6e45d7b90accbbdfef353c41ab0a78a3e4742803
tree12d365a7f7ecf144b54677b11fb72e6e0e3f0b90
parentaaf6a3dbbdb9754f98d480b468adfcae0f66e3a2
bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (GH-3947) (#4086)

Bad remainder in divmod() in intermediate calculations caused an assertion failure.
(cherry picked from commit 4ffd4653a7ec9c97775472276cf5e159e2366bb2)
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