summaryrefslogtreecommitdiff
path: root/net-print/cups/files/0001-cups-fix-uninit-value-jump.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-print/cups/files/0001-cups-fix-uninit-value-jump.patch')
-rw-r--r--net-print/cups/files/0001-cups-fix-uninit-value-jump.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-print/cups/files/0001-cups-fix-uninit-value-jump.patch b/net-print/cups/files/0001-cups-fix-uninit-value-jump.patch
new file mode 100644
index 000000000000..79e462e1547d
--- /dev/null
+++ b/net-print/cups/files/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));
+