diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-12-13 09:30:46 -0500 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2019-12-31 13:53:00 +0100 |
commit | 1b21a83376cee1f213faf7f4b4d89dd766c28975 (patch) | |
tree | 37955875201ebd5083838b459231e6641488d96f | |
parent | 545d46fb0bf1cd8414ab28148f3a3126c3cf75fe (diff) |
CVE-2019-2228: Fix ippSetValueTag validation of default language
Closes: #946782
-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 cc9c6af50..98b499716 100644 --- a/cups/ipp.c +++ b/cups/ipp.c @@ -4563,7 +4563,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... |