diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-12-13 09:27:14 -0500 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-12-13 09:27:14 -0500 |
commit | b018978c278d42c7abf78941251b887c95dfdb07 (patch) | |
tree | 5f025bf49fff840df1694d59f3d3fd3e556c206a /cups | |
parent | bb640280b68fc570140bb8c1bedad13357b05473 (diff) | |
download | cups-b018978c278d42c7abf78941251b887c95dfdb07.tar.gz |
CVE-2019-2228: Fix ippSetValueTag validation of default language.
Diffstat (limited to 'cups')
-rw-r--r-- | cups/ipp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cups/ipp.c b/cups/ipp.c index d0cac8cfe..1595b8b61 100644 --- a/cups/ipp.c +++ b/cups/ipp.c @@ -4565,7 +4565,7 @@ ippSetValueTag( return (0); if (ipp->attrs && ipp->attrs->next && ipp->attrs->next->name && - !strcmp(ipp->attrs->next->name, "attributes-natural-language")) + !strcmp(ipp->attrs->next->name, "attributes-natural-language") && (ipp->attrs->next->value_tag & IPP_TAG_CUPS_MASK) == IPP_TAG_LANGUAGE) { /* * Use the language code from the IPP message... |