]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-13312: Avoid int underflow in time year. (GH-8912)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 25 Aug 2018 05:53:00 +0000 (01:53 -0400)
committerGitHub <noreply@github.com>
Sat, 25 Aug 2018 05:53:00 +0000 (01:53 -0400)
commitd5f017bbd65f37ac53fd3c6c439a53155eef2475
tree38954565d3575009f7634f28b83897eb2feaa94c
parent1f9621cb9b0d1f5c9d28e095db31d8c12e58c932
bpo-13312: Avoid int underflow in time year. (GH-8912)

Avoids an integer underflow in the time module's year handling code.
(cherry picked from commit 76be0fffff8b7dbe649ad4821144461800ffb0d0)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/test/test_time.py
Misc/NEWS.d/next/Library/2018-08-24-17-31-27.bpo-13312.6hA5La.rst [new file with mode: 0644]
Modules/timemodule.c