components/ghostscript/patches/7152414.patch
author saurabh.vyas@oracle.com
Thu, 30 Mar 2017 20:50:08 -0700
changeset 7819 b1bca76ec901
parent 852 0a7f3f0c7b6f
permissions -rw-r--r--
PSARC/2015/272 Ghostscript 9.20 16354273 Upgrade ghostscript to 9.20 24808169 problem in UTILITY/GHOSTSCRIPT 24808123 problem in UTILITY/GHOSTSCRIPT 24807899 problem in UTILITY/GHOSTSCRIPT 24807607 problem in UTILITY/GHOSTSCRIPT 23148723 Regression caused due to -x04 optimisation with /usr/bin/amd64/gs on S12_97 25054202 ghostscript 9.20 build fails with restrict qualifier
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7819
b1bca76ec901 PSARC/2015/272 Ghostscript 9.20
saurabh.vyas@oracle.com
parents: 852
diff changeset
     1
The patch has been taken from community and fixes Integer overflow.
b1bca76ec901 PSARC/2015/272 Ghostscript 9.20
saurabh.vyas@oracle.com
parents: 852
diff changeset
     2
The details can be found in the following location
b1bca76ec901 PSARC/2015/272 Ghostscript 9.20
saurabh.vyas@oracle.com
parents: 852
diff changeset
     3
https://bugs.ghostscript.com/show_bug.cgi?id=691733
b1bca76ec901 PSARC/2015/272 Ghostscript 9.20
saurabh.vyas@oracle.com
parents: 852
diff changeset
     4
b1bca76ec901 PSARC/2015/272 Ghostscript 9.20
saurabh.vyas@oracle.com
parents: 852
diff changeset
     5
--- ghostscript-9.20/cups/gdevcups.c	2016-09-26 03:41:28.000000000 -0700
b1bca76ec901 PSARC/2015/272 Ghostscript 9.20
saurabh.vyas@oracle.com
parents: 852
diff changeset
     6
+++ ghostscript-9.20/cups/gdevcups.c	2016-10-13 21:48:22.080156040 -0700
b1bca76ec901 PSARC/2015/272 Ghostscript 9.20
saurabh.vyas@oracle.com
parents: 852
diff changeset
     7
@@ -3801,7 +3801,7 @@
852
0a7f3f0c7b6f 7152414 ghostscript corrupts pages 2 and on when printing to HP printers
gowtham thommandra - Sun Microsystems - Bangalore India <Gowtham.Thommandra@Sun.COM>
parents:
diff changeset
     8
 
7819
b1bca76ec901 PSARC/2015/272 Ghostscript 9.20
saurabh.vyas@oracle.com
parents: 852
diff changeset
     9
       if ((code = gdev_prn_maybe_realloc_memory((gx_device_printer *)pdev,
b1bca76ec901 PSARC/2015/272 Ghostscript 9.20
saurabh.vyas@oracle.com
parents: 852
diff changeset
    10
                                                 &sp_old,
852
0a7f3f0c7b6f 7152414 ghostscript corrupts pages 2 and on when printing to HP printers
gowtham thommandra - Sun Microsystems - Bangalore India <Gowtham.Thommandra@Sun.COM>
parents:
diff changeset
    11
-						width_old, height_old,
0a7f3f0c7b6f 7152414 ghostscript corrupts pages 2 and on when printing to HP printers
gowtham thommandra - Sun Microsystems - Bangalore India <Gowtham.Thommandra@Sun.COM>
parents:
diff changeset
    12
+						width, height,
7819
b1bca76ec901 PSARC/2015/272 Ghostscript 9.20
saurabh.vyas@oracle.com
parents: 852
diff changeset
    13
 						transp_old))
852
0a7f3f0c7b6f 7152414 ghostscript corrupts pages 2 and on when printing to HP printers
gowtham thommandra - Sun Microsystems - Bangalore India <Gowtham.Thommandra@Sun.COM>
parents:
diff changeset
    14
 	  < 0)
7819
b1bca76ec901 PSARC/2015/272 Ghostscript 9.20
saurabh.vyas@oracle.com
parents: 852
diff changeset
    15
         goto done;