Skip to content

Commit cc1e4df

Browse files
committed
Fix error handling when reading a bad 1setOf attribute.
1 parent a2bd523 commit cc1e4df

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CHANGES - OpenPrinting CUPS 2.4.9 - (2024-06-11)
22
================================================
33

4+
Changes in CUPS v2.4.10 (TBD)
5+
-----------------------------
6+
7+
- Fixed error handling when reading a mixed `1setOf` attribute.
8+
9+
410
Changes in CUPS v2.4.9 (2024-06-11)
511
-----------------------------------
612

cups/ipp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3102,7 +3102,8 @@ ippReadIO(void *src, /* I - Data source */
31023102
{
31033103
DEBUG_printf(("1ippReadIO: Converting %s attribute from %s to %s.",
31043104
attr->name, ippTagString(value_tag), ippTagString(tag)));
3105-
ippSetValueTag(ipp, &attr, tag);
3105+
if (!ippSetValueTag(ipp, &attr, tag))
3106+
goto rollback;
31063107
}
31073108
}
31083109
else if (value_tag == IPP_TAG_INTEGER ||

0 commit comments

Comments
 (0)