jump based on uninitialized value in PPD related CUPS API on ppc64le

This commit is contained in:
Zdenek Dohnal 2022-02-24 11:45:08 +01:00
parent bf3580aeb8
commit 0229ce4e86
2 changed files with 27 additions and 1 deletions

View File

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

View File

@ -15,7 +15,7 @@ Summary: CUPS printing system
Name: cups
Epoch: 1
Version: 2.4.1
Release: 3%{?dist}
Release: 4%{?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,9 @@ Patch100: cups-lspp.patch
%endif
#### UPSTREAM PATCHES (starts with 1000) ####
# uninitialized value in cups library on ppc64le
# 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
@ -269,6 +272,8 @@ to CUPS daemon. This solution will substitute printer drivers and raw queues in
%patch13 -p1 -b .dymo-deviceid
# UPSTREAM PATCHES
# uninitialized value in PPD CUPS API
%patch1000 -p1 -b .ppd-memleak
%if %{lspp}
@ -652,6 +657,9 @@ rm -f %{cups_serverbin}/backend/smb
%{_mandir}/man7/ippeveps.7.gz
%changelog
* Thu Feb 24 2022 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.4.1-4
- jump based on uninitialized value in PPD related CUPS API on ppc64le
* Tue Feb 22 2022 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.4.1-3
- own www/da and www/fr dirs