#20 Fix uninit value based jump in ppd.c
Closed 7 months ago by zdohnal. Opened 7 months ago by rlescak.
rpms/ rlescak/cups fix-uninit-value-jump-f35  into  f35

@@ -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
@@ -17,7 +17,7 @@ 

  Name: cups

  Epoch: 1

  Version: 2.3.3%{OP_VER}

- Release: 13%{?dist}

+ Release: 14%{?dist}

  License: ASL 2.0

  Url: https://openprinting.github.io/cups/

  # Apple stopped uploading the new versions into github, use OpenPrinting fork
@@ -106,6 +106,8 @@ 

  # Memory leak fixes

  # https://github.com/OpenPrinting/cups/pull/322

  Patch29: 0001-cups-http-encode-memleaks-fixes-issue-322.patch

+ #https://github.com/OpenPrinting/cups/pull/329

+ Patch30: 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
@@ -339,7 +341,7 @@ 

  %patch28 -p1 -b .conf-timeoutstartsec

  # Memory leak fixes

  %patch29 -p1 -b .memleak-fixes

- 

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

  

  %if %{lspp}

  # LSPP support.
@@ -715,6 +717,9 @@ 

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

  

  %changelog

+ * Thu Feb 10 2022 Richard Lescak <rlescak@redhat.com> - 1:2.3.3op2-14

+ - Fix uninit value based jump in ppd.c

+ 

  * Thu Jan 20 2022 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.3.3op2-13

  - Fix number of expected warnings in test suite

  

no initial comment

Pull-Request has been closed by zdohnal

7 months ago