Skip to content

Commit bc8367e

Browse files
committed
Extend datwTime validation to UTC+14 (Issue #1201)
1 parent ce7e650 commit bc8367e

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Changes in CUPS v2.4.12 (YYYY-MM-DD)
1414
- Fixed client raster printing from macOS (Issue #1143)
1515
- Fixed the default User-Agent string.
1616
- Fixed a recursion issue in `ippReadIO`.
17+
- Fixed validation of dateTime values with time zones more than UTC+11
18+
(Issue #1201)
1719

1820

1921
Changes in CUPS v2.4.11 (2024-09-30)

cups/ipp.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Internet Printing Protocol functions for CUPS.
33
*
4-
* Copyright © 2022-2024 by OpenPrinting.
4+
* Copyright © 2022-2025 by OpenPrinting.
55
* Copyright © 2007-2021 by Apple Inc.
66
* Copyright © 1997-2007 by Easy Software Products, all rights reserved.
77
*
@@ -4077,8 +4077,9 @@ ippValidateAttribute(
40774077
return (0);
40784078
}
40794079

4080-
if (date[9] > 11)
4080+
if (date[9] > 14)
40814081
{
4082+
// Kiribata has a UTC+14 time zone, RFC 2579 calls for UTC+13 support, errata filed...
40824083
ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)."), attr->name, date[9]);
40834084
return (0);
40844085
}

0 commit comments

Comments
 (0)