From f8592e5ea4c07f7f340c7eb83967cb6861f3ff5b Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 9 Sep 2024 09:59:06 -0400 Subject: [PATCH] Make sure that temporary/IPP Everywhere queues don't try to work with printers that return invalid capabilities. --- scheduler/ipp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scheduler/ipp.c b/scheduler/ipp.c index 16eae4971..7215281eb 100644 --- a/scheduler/ipp.c +++ b/scheduler/ipp.c @@ -5356,6 +5356,13 @@ create_local_bg_thread( } } + // Validate response from printer... + if (!ippValidateAttributes(response)) + { + send_ipp_status(con, IPP_STATUS_ERROR_DEVICE, _("Printer returned invalid data: %s"), cupsGetErrorString()); + goto finish_response; + } + // TODO: Grab printer icon file... httpClose(http);