author | saurabh.vyas@oracle.com |
Thu, 30 Mar 2017 20:50:08 -0700 | |
changeset 7819 | b1bca76ec901 |
parent 852 | 0a7f3f0c7b6f |
permissions | -rw-r--r-- |
7819 | 1 |
The patch has been taken from community and fixes Integer overflow. |
2 |
The details can be found in the following location |
|
3 |
https://bugs.ghostscript.com/show_bug.cgi?id=691733 |
|
4 |
||
5 |
--- ghostscript-9.20/cups/gdevcups.c 2016-09-26 03:41:28.000000000 -0700 |
|
6 |
+++ ghostscript-9.20/cups/gdevcups.c 2016-10-13 21:48:22.080156040 -0700 |
|
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 | 9 |
if ((code = gdev_prn_maybe_realloc_memory((gx_device_printer *)pdev, |
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 | 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 | 15 |
goto done; |