Avoid sign-extending CRCs for gz decompression (bug #983486).
Resolves: rhbz#983486
This commit is contained in:
parent
0421b94a61
commit
08200f2b5d
14
cups-gz-crc.patch
Normal file
14
cups-gz-crc.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff -up cups-1.6.2/cups/file.c.gz-crc cups-1.6.2/cups/file.c
|
||||||
|
--- cups-1.6.2/cups/file.c.gz-crc 2013-07-11 12:06:49.920878639 +0100
|
||||||
|
+++ cups-1.6.2/cups/file.c 2013-07-11 12:13:41.169628104 +0100
|
||||||
|
@@ -2429,8 +2429,8 @@ cups_fill(cups_file_t *fp) /* I - CUPS
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
- tcrc = (((((trailer[3] << 8) | trailer[2]) << 8) | trailer[1]) << 8) |
|
||||||
|
- trailer[0];
|
||||||
|
+ tcrc = (((uLong) ((trailer[3] << 8) | trailer[2])) << 16) |
|
||||||
|
+ (uLong) ((trailer[1] << 8) | trailer[0]);
|
||||||
|
|
||||||
|
if (tcrc != fp->crc)
|
||||||
|
{
|
@ -11,7 +11,7 @@ Summary: CUPS printing system
|
|||||||
Name: cups
|
Name: cups
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 1.6.2
|
Version: 1.6.2
|
||||||
Release: 17%{?dist}
|
Release: 18%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Url: http://www.cups.org/
|
Url: http://www.cups.org/
|
||||||
@ -62,6 +62,7 @@ Patch31: cups-dymo-deviceid.patch
|
|||||||
Patch32: cups-use-ipp1.1.patch
|
Patch32: cups-use-ipp1.1.patch
|
||||||
Patch33: cups-no-gcry.patch
|
Patch33: cups-no-gcry.patch
|
||||||
Patch34: cups-avahi-no-threaded.patch
|
Patch34: cups-avahi-no-threaded.patch
|
||||||
|
Patch35: cups-gz-crc.patch
|
||||||
|
|
||||||
Patch100: cups-lspp.patch
|
Patch100: cups-lspp.patch
|
||||||
|
|
||||||
@ -247,6 +248,8 @@ Sends IPP requests to the specified URI and tests and/or displays the results.
|
|||||||
%patch33 -p1 -b .no-gcry
|
%patch33 -p1 -b .no-gcry
|
||||||
# Don't use D-Bus from two threads (bug #979748).
|
# Don't use D-Bus from two threads (bug #979748).
|
||||||
%patch34 -p1 -b .avahi-no-threaded
|
%patch34 -p1 -b .avahi-no-threaded
|
||||||
|
# Avoid sign-extending CRCs for gz decompression (bug #983486).
|
||||||
|
%patch35 -p1 -b .gz-crc
|
||||||
|
|
||||||
%if %lspp
|
%if %lspp
|
||||||
# LSPP support.
|
# LSPP support.
|
||||||
@ -640,6 +643,9 @@ rm -f %{cups_serverbin}/backend/smb
|
|||||||
%{_mandir}/man5/ipptoolfile.5.gz
|
%{_mandir}/man5/ipptoolfile.5.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 11 2013 Tim Waugh <twaugh@redhat.com> 1:1.6.2-18
|
||||||
|
- Avoid sign-extending CRCs for gz decompression (bug #983486).
|
||||||
|
|
||||||
* Wed Jul 10 2013 Tim Waugh <twaugh@redhat.com> 1:1.6.2-17
|
* Wed Jul 10 2013 Tim Waugh <twaugh@redhat.com> 1:1.6.2-17
|
||||||
- Fixed download URL.
|
- Fixed download URL.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user