Skip to content

Commit 928a86b

Browse files
committed
Range check job-password-supported.
1 parent e0ce2c9 commit 928a86b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Changes in CUPS v2.4.17 (YYYY-MM-DD)
3333
- Fixed the mapping of supply type keywords to SNMP names.
3434
- Fixed a bug in the IPP backend when SNMP was disabled.
3535
- Fixed a crash bug in the rastertoepson filter.
36+
- Fixed the range check for job password strings.
3637

3738

3839
Changes in CUPS v2.4.16 (2025-12-04)

cups/ppd-cache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* PPD cache implementation for CUPS.
33
*
4-
* Copyright © 2022-2025 by OpenPrinting.
4+
* Copyright © 2022-2026 by OpenPrinting.
55
* Copyright © 2010-2021 by Apple Inc.
66
*
77
* Licensed under Apache License v2.0. See the file "LICENSE" for more
@@ -3530,7 +3530,7 @@ _ppdCreateFromIPP2(
35303530
* Password/PIN printing...
35313531
*/
35323532

3533-
if ((attr = ippFindAttribute(supported, "job-password-supported", IPP_TAG_INTEGER)) != NULL)
3533+
if ((attr = ippFindAttribute(supported, "job-password-supported", IPP_TAG_INTEGER)) != NULL && ippGetInteger(attr, 0) > 0)
35343534
{
35353535
char pattern[33]; /* Password pattern */
35363536
int maxlen = ippGetInteger(attr, 0);

0 commit comments

Comments
 (0)