]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
libppd: Fixed jum based on uninitialized value in ppd.c
authorTill Kamppeter <till.kamppeter@gmail.com>
Mon, 14 Feb 2022 16:38:56 +0000 (13:38 -0300)
committerTill Kamppeter <till.kamppeter@gmail.com>
Mon, 14 Feb 2022 16:38:56 +0000 (13:38 -0300)
Ported over the fix of CUPS issue #329.

ppd/ppd.c

index 4a4303b7f5eee0cce3e2ebdcf16212abd1e309f5..11ad63243aa1dab37bb0898f7c8f4b04f28761fb 100644 (file)
--- a/ppd/ppd.c
+++ b/ppd/ppd.c
@@ -3367,11 +3367,11 @@ 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[2048],           /* 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));