Skip to content

Commit 575d4cd

Browse files
committed
Extend datwTime validation to UTC+14.
1 parent ac84d3c commit 575d4cd

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ libcups v3.0rc4 (YYYY-MM-DD)
2323
- Fixed a duplicate printer reporting bug in `cupsGetDests`.
2424
- Fixed handling of `NULL` path in `cupsSaveCredentials` API.
2525
- Fixed handling of default authorization strings.
26+
- Fixed validation of dateTime values with time zones more than UTC+11.
2627

2728

2829
libcups v3.0rc3 (2024-10-22)

cups/ipp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3613,8 +3613,9 @@ ippValidateAttribute(
36133613
return (false);
36143614
}
36153615

3616-
if (date[9] > 11)
3616+
if (date[9] > 14)
36173617
{
3618+
// Kiribata has a UTC+14 time zone, RFC 2579 calls for UTC+13 support, errata filed...
36183619
ipp_set_error(IPP_STATUS_ERROR_BAD_REQUEST, _("\"%s\": Bad dateTime UTC hours %u (RFC 8011 section 5.1.15)."), attr->name, date[9]);
36193620
return (false);
36203621
}

0 commit comments

Comments
 (0)