summaryrefslogtreecommitdiff
path: root/cups
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2016-05-09 09:28:00 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2016-05-09 11:18:00 -0700
commitc4a33f573adbf8627f08407e4357475285b46cf0 (patch)
tree11a13983c844db9a14cdc71b2662274a4bef94ae /cups
parentccd831b1b17b7e5f62e43583da51505d202b4de7 (diff)
downloadghostpdl-c4a33f573adbf8627f08407e4357475285b46cf0.tar.gz
Change max_components and num_components in dev.color_info to uchar
There are locations in the code where Coverity has complained about code logic that resulted in passing of unintialized values that could only occur if num_components < 0 . Since this should never be the case, we will make it clear by setting num_components and max_components to uchar. This will limit our support to 256 colors by a device.
Diffstat (limited to 'cups')
-rw-r--r--cups/gdevcups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cups/gdevcups.c b/cups/gdevcups.c
index c00e758ad..6f070c8b2 100644
--- a/cups/gdevcups.c
+++ b/cups/gdevcups.c
@@ -5484,7 +5484,7 @@ cups_print_planar(gx_device_printer *pdev,
{
int x; /* Looping var */
int y; /* Looping var */
- int z; /* Looping var */
+ unsigned char z; /* Looping var */
unsigned char srcbit; /* Current source bit */
unsigned char dstbit; /* Current destination bit */
unsigned char temp; /* Temporary variable */