]> 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:20 +0000 (01:53 -0400)
committerGitHub <noreply@github.com>
Sat, 25 Aug 2018 05:53:20 +0000 (01:53 -0400)
commitc47acc2bb1d0a3fb6dda14ced958d272fb2821a6
treef05574b97eb60a64755ec9a51832d03bf85361e5
parent2443766baec24f48944eebd44610116a3e2f46b1
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