components/ghostscript/patches/7152414.patch
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 May 2017 17:33:26 -0700
changeset 7964 d9801318ed3d
parent 7819 b1bca76ec901
permissions -rw-r--r--
25981468 Build ilmbase and openexr with the GNU compilers
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;