#19 Fix uninit value based jump in ppd.c
Closed 2 years ago by zdohnal. Opened 2 years ago by rlescak.
rpms/ rlescak/cups fix-uninit-value-jump  into  rawhide

@@ -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));

+  

file modified
+7 -2
@@ -15,7 +15,7 @@ 

  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 @@ 

  %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 @@ 

  %patch13 -p1 -b .dymo-deviceid

  

  # UPSTREAM PATCHES

- 

+ %patch1000 -p1 -b .uninit-value-jump

  

  %if %{lspp}

  # LSPP support.
@@ -648,6 +650,9 @@ 

  %{_mandir}/man7/ippeveps.7.gz

  

  %changelog

+ * Thu Feb 10 2022 Richard Lescak <rlescak@redhat.com> - 1:2.4.1-2

+ - Fix uninit value based jump in ppd.c

+ 

  * Mon Feb 07 2022 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.4.1-1

  - 2047665 - cups-2.4.1 is available

  

no initial comment

Thx for the PR, tests pass now.

Pull-Request has been closed by zdohnal

2 years ago

Merged by hand, because the original branch moved - please rebase your F35 PR as well, thank you in advance!