diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-05-06 23:43:05 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-05-06 23:43:05 +0000 |
commit | f25d93614a3c660699cdef795c030bb825a7795e (patch) | |
tree | 81821daffd61de842ab1ea3cf07bd0b161ef81e5 /Build | |
parent | 5e7ae95ec8eb655217899da5a7704ebf1a0603fc (diff) |
avoid to crash (w32 only)
git-svn-id: svn://tug.org/texlive/trunk@40925 c570f23f-e606-0410-a88d-b1316a301751
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 */ |