From aa745bc8c897194a2ac5d80a871f4b015ee32fa0 Mon Sep 17 00:00:00 2001 From: Richard Lescak Date: Feb 10 2022 11:57:30 +0000 Subject: Fix uninit value based jump in ppd.c --- diff --git a/0001-cups-fix-uninit-value-jump.patch b/0001-cups-fix-uninit-value-jump.patch new file mode 100644 index 0000000..79e462e --- /dev/null +++ b/0001-cups-fix-uninit-value-jump.patch @@ -0,0 +1,18 @@ +diff --git a/cups/ppd.c b/cups/ppd.c +index 525df3592..54368ac4c 100644 +--- a/cups/ppd.c ++++ b/cups/ppd.c +@@ -3430,12 +3430,12 @@ ppd_update_filters(ppd_file_t *ppd, /* I - PPD file */ + srctype[256], + dstsuper[16], /* Destination MIME media type */ + dsttype[256], +- program[1024], /* Command to run */ + *ptr, /* Pointer into command to run */ + buffer[1024], /* Re-written cupsFilter value */ + **filter; /* Current filter */ + int cost; /* Cost of filter */ + ++ char program[1024] = { 0 }; /* Command to run */ + + DEBUG_printf(("4ppd_update_filters(ppd=%p, cg=%p)", ppd, pg)); + diff --git a/cups.spec b/cups.spec index c77ef3e..b259a08 100644 --- a/cups.spec +++ b/cups.spec @@ -15,7 +15,7 @@ Summary: CUPS printing system Name: cups Epoch: 1 Version: 2.4.1 -Release: 1%{?dist} +Release: 2%{?dist} License: ASL 2.0 Url: https://openprinting.github.io/cups/ # Apple stopped uploading the new versions into github, use OpenPrinting fork @@ -67,6 +67,8 @@ Patch100: cups-lspp.patch %endif #### UPSTREAM PATCHES (starts with 1000) #### +#https://github.com/OpenPrinting/cups/pull/329 +Patch1000: 0001-cups-fix-uninit-value-jump.patch ##### Patches removed because IMHO they aren't no longer needed ##### but still I'll leave them in git in case their removal @@ -267,7 +269,7 @@ to CUPS daemon. This solution will substitute printer drivers and raw queues in %patch13 -p1 -b .dymo-deviceid # UPSTREAM PATCHES - +%patch1000 -p1 -b .uninit-value-jump %if %{lspp} # LSPP support. @@ -648,6 +650,9 @@ rm -f %{cups_serverbin}/backend/smb %{_mandir}/man7/ippeveps.7.gz %changelog +* Thu Feb 10 2022 Richard Lescak - 1:2.4.1-2 +- Fix uninit value based jump in ppd.c + * Mon Feb 07 2022 Zdenek Dohnal - 1:2.4.1-1 - 2047665 - cups-2.4.1 is available