From: Michael R Sweet Date: Mon, 17 Mar 2025 16:27:56 +0000 (-0400) Subject: Extend datwTime validation to UTC+14 (Issue #1201) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7942563622f1637aee4597adf79d33782a76a0f5;p=thirdparty%2Fcups.git Extend datwTime validation to UTC+14 (Issue #1201) --- diff --git a/CHANGES.md b/CHANGES.md index abebe5dec9..f258270786 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -131,6 +131,8 @@ Changes in CUPS v2.5b1 (YYYY-MM-DD) - Fixed error handling when reading a mixed `1setOf` attribute. - Fixed how `ippeveprinter` responds to an unsupported request character set. - Fixed a recursion issue in `ippReadIO`. +- Fixed validation of dateTime values with time zones more than UTC+11 + (Issue #1201) - Removed hash support for SHA2-512-224 and SHA2-512-256. - Removed `mantohtml` script for generating html pages (use `https://www.msweet.org/mantohtml/`) diff --git a/cups/ipp.c b/cups/ipp.c index 5e30bf00e8..0df13a35f7 100644 --- a/cups/ipp.c +++ b/cups/ipp.c @@ -3736,8 +3736,9 @@ ippValidateAttribute( return (0); } - if (date[9] > 11) + if (date[9] > 14) { + // Kiribata has a UTC+14 time zone, RFC 2579 calls for UTC+13 support, errata filed... ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)."), attr->name, date[9]); return (0); }