[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

nmacleod report at bugs.python.org
Thu Feb 13 10:59:33 EST 2020


nmacleod <launchpad at nmacleod.com> added the comment:

Apologies for the necro on this issue, but should this now be fixed in Python3.7? As it appears to still be an issue.

Testing on a Raspberry Pi with LibreELEC (32-bit OS):

rpi512:~ # python -c "import sys, http.cookiejar; print(sys.version); print(http.cookiejar.time2isoz(2322923767))"
3.7.6 (default, Feb 12 2020, 17:36:39)
[GCC 9.2.0]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.7/cookiejar.py", line 101, in time2isoz
OverflowError: timestamp out of range for platform time_t


This is on a distribution built with latest glibc-2.31.

----------
nosy: +nmacleod

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue5537>
_______________________________________


More information about the Python-bugs-list mailing list