]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Extend datwTime validation to UTC+14 (Issue #1201)
authorMichael R Sweet <msweet@msweet.org>
Mon, 17 Mar 2025 16:27:56 +0000 (12:27 -0400)
committerMichael R Sweet <msweet@msweet.org>
Mon, 17 Mar 2025 16:27:56 +0000 (12:27 -0400)
CHANGES.md
cups/ipp.c

index abebe5dec9e2bfc16de62889b1aa086fd599623b..f2582707865c5bc75eef096735493a089c8ca8bf 100644 (file)
@@ -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/`)
index 5e30bf00e8d713cbfab383d3fae7b16c9f0f2035..0df13a35f7f3593a5997d7db6de1a585f322102e 100644 (file)
@@ -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);
          }