1
Description: Avoid sign-extending CRCs for gz decompression
2
Author: Tim Waugh <twaugh@redhat.com>
3
Bug-RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=983486
4
Last-Update: 2013-07-11
6
diff -up cups-1.6.2/cups/file.c.gz-crc cups-1.6.2/cups/file.c
7
--- cups-1.6.2/cups/file.c.gz-crc 2013-07-11 12:06:49.920878639 +0100
8
+++ cups-1.6.2/cups/file.c 2013-07-11 12:13:41.169628104 +0100
9
@@ -2429,8 +2429,8 @@ cups_fill(cups_file_t *fp) /* I - CUPS
13
- tcrc = (((((trailer[3] << 8) | trailer[2]) << 8) | trailer[1]) << 8) |
15
+ tcrc = (((uLong) ((trailer[3] << 8) | trailer[2])) << 16) |
16
+ (uLong) ((trailer[1] << 8) | trailer[0]);