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

The patch has been taken from community and fixes Integer overflow.
The details can be found in the following location
https://bugs.ghostscript.com/show_bug.cgi?id=691733

--- ghostscript-9.20/cups/gdevcups.c	2016-09-26 03:41:28.000000000 -0700
+++ ghostscript-9.20/cups/gdevcups.c	2016-10-13 21:48:22.080156040 -0700
@@ -3801,7 +3801,7 @@
 
       if ((code = gdev_prn_maybe_realloc_memory((gx_device_printer *)pdev,
                                                 &sp_old,
-						width_old, height_old,
+						width, height,
 						transp_old))
 	  < 0)
         goto done;