[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

Amaury Forgeot d'Arc report at bugs.python.org
Fri Nov 21 21:29:37 CET 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

You almost gave the answer in your question - the FILE_TIME is about to be 
converted to a time_t greater than 2**31.

in posixmodule.c::FILE_TIME_to_time_t_nsec(), a comment says:
/* XXX Win32 supports time stamps past 2038; we currently don't */
just before the assert()...

And indeed to reproduce the same crash it is enough to call os.stat() on a 
file with a creation date in 2050 for example.

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4379>
_______________________________________


More information about the Python-bugs-list mailing list