diff options
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/web2c/lib/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/lib/texmfmp.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog index 3fe46263d0b..5994ef7ac80 100644 --- a/Build/source/texk/web2c/lib/ChangeLog +++ b/Build/source/texk/web2c/lib/ChangeLog @@ -1,3 +1,8 @@ +2016-05-06 Akira Kakuto <kakuto@fuk.kinidai.ac.jp> + + * texmfmp.c: Avoid to crash for too large a value of SOURCE_DATE_EPOCH. + (w32 only). + 2016-05-06 Karl Berry <karl@tug.org> * texmfmp.c (init_start_time, get_date_and_time) [onlyTeX]: diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c index c56cd026a99..cd7953a9301 100644 --- a/Build/source/texk/web2c/lib/texmfmp.c +++ b/Build/source/texk/web2c/lib/texmfmp.c @@ -2222,6 +2222,10 @@ void init_start_time() { FATAL1 ("invalid epoch-seconds-timezone value for environment variable $SOURCE_DATE_EPOCH: %s", source_date_epoch); } +#if defined(_MSC_VER) + if (epoch > 32535291599ULL) + epoch = 32535291599ULL; +#endif start_time = epoch; } else #endif /* not onlyTeX */ |