diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2021-04-05 15:57:50 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2021-04-05 15:57:50 -0400 |
commit | 064e50fb06e83e6c1756e2a81c2fcbd4d6fca8e6 (patch) | |
tree | 45145c8db9a634af861cb1ed87a7378837e72763 /cups/http-support.c | |
parent | 6918883fba4942931dc455b32545d6edf18dec5c (diff) | |
download | cups-064e50fb06e83e6c1756e2a81c2fcbd4d6fca8e6.tar.gz |
Import all of the bug fixes from the OpenPrinting CUPS repository.
Import the improvements to ippeveprinter from OpenPrinting/ippsample.
Import the improvements to ippfind and ipptool from OpenPrinting/ippsample.
Diffstat (limited to 'cups/http-support.c')
-rw-r--r-- | cups/http-support.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cups/http-support.c b/cups/http-support.c index 63175145e..49557300e 100644 --- a/cups/http-support.c +++ b/cups/http-support.c @@ -841,6 +841,13 @@ httpGetDateTime(const char *s) /* I - Date/time string */ "min=%d, sec=%d", day, mon, year, hour, min, sec)); /* + * Check for invalid year (RFC 7231 says it's 4DIGIT) + */ + + if (year > 9999) + return (0); + + /* * Convert the month name to a number from 0 to 11. */ |