]> 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:28:57 +0000 (12:28 -0400)
committerMichael R Sweet <msweet@msweet.org>
Mon, 17 Mar 2025 16:28:57 +0000 (12:28 -0400)
CHANGES.md
cups/ipp.c

index 7100f33ff1d8c4963dd0f0990433bf3b6e0f217f..1e245ac0b3b7308e7e2e28dbd9f5eb7c44d0ac8b 100644 (file)
@@ -14,6 +14,8 @@ Changes in CUPS v2.4.12 (YYYY-MM-DD)
 - Fixed client raster printing from macOS (Issue #1143)
 - Fixed the default User-Agent string.
 - Fixed a recursion issue in `ippReadIO`.
+- Fixed validation of dateTime values with time zones more than UTC+11
+  (Issue #1201)
 
 
 Changes in CUPS v2.4.11 (2024-09-30)
index bc002620bdf253fb44607f6af9599e219c5b06bb..8070785846268c01ba1c4b663908dbce8cb2979f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Internet Printing Protocol functions for CUPS.
  *
- * Copyright © 2022-2024 by OpenPrinting.
+ * Copyright © 2022-2025 by OpenPrinting.
  * Copyright © 2007-2021 by Apple Inc.
  * Copyright © 1997-2007 by Easy Software Products, all rights reserved.
  *
@@ -4077,8 +4077,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);
          }