bounds-checking for tm_year: 1900 + 8099 = 9999.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11521
dc483132-0cff-0310-8789-
dd5450dbe970
+1999-06-15 Tom Yu <tlyu@mit.edu>
+
+ * asn1_encode.c (asn1_encode_generaltime): Fix minor bug in
+ bounds-checking for tm_year: 1900 + 8099 = 9999.
+
Mon May 10 15:23:51 1999 Danilo Almeida <dalmeida@mit.edu>
* Makefile.in: Do win32 build in subdir.
* and some bogus implementations might overrun on the sprintf.
*/
if (gtime == NULL ||
- gtime->tm_year > 9999 || gtime->tm_mon > 11 ||
+ gtime->tm_year > 8099 || gtime->tm_mon > 11 ||
gtime->tm_mday > 31 || gtime->tm_hour > 23 ||
gtime->tm_min > 59 || gtime->tm_sec > 59)
return ASN1_BAD_GMTIME;