diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-02-21 06:55:06 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-02-21 06:55:06 +0000 |
commit | 953cbb580168f4f35072f7a8981ebcff40f3b8ed (patch) | |
tree | 7b91143ecc8ab6061e843aa4d962c3d9b17ac24d /gnu/usr.bin/cvs/lib/getdate.y | |
parent | c9f752655b76ca5a60a46cf9213174d30a5890f8 (diff) |
Integrate local changes
Diffstat (limited to 'gnu/usr.bin/cvs/lib/getdate.y')
-rw-r--r-- | gnu/usr.bin/cvs/lib/getdate.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.bin/cvs/lib/getdate.y b/gnu/usr.bin/cvs/lib/getdate.y index 046fa3fb1ee..8ed565caacc 100644 --- a/gnu/usr.bin/cvs/lib/getdate.y +++ b/gnu/usr.bin/cvs/lib/getdate.y @@ -640,7 +640,9 @@ Convert(Month, Day, Year, Hours, Minutes, Seconds, Meridian, DSTmode) Year += 1900; DaysInMonth[1] = Year % 4 == 0 && (Year % 100 != 0 || Year % 400 == 0) ? 29 : 28; - if (Year < EPOCH || Year > 1999 + /* Checking for 2038 bogusly assumes that time_t is 32 bits. But + I'm too lazy to try to check for time_t overflow in another way. */ + if (Year < EPOCH || Year > 2038 || Month < 1 || Month > 12 /* Lint fluff: "conversion from long may lose accuracy" */ || Day < 1 || Day > DaysInMonth[(int)--Month]) |