[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1733-g7acf36d
[email protected] (Ray Johnston) Wed, 16 Oct 2019 15:33:39 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, master has been updated
via 7acf36de36e6972be8a892078d214eea8e311cdd (commit)
via 1170f928cc98b64a26edc275b66f081be9079cbb (commit)
from 928ae0dbcf9a2307bb33ba8d2abd83274fc34a7d (commit)
----------------------------------------------------------------------
commit 7acf36de36e6972be8a892078d214eea8e311cdd
Author: Ray Johnston <[email protected]>
Date: Wed Oct 16 08:18:59 2019 -0700
Fix bug 699457: Parameter range checking wrong (would not spot bad values).
diff --git a/devices/gdevtsep.c b/devices/gdevtsep.c
index 5fb1025..b5ea163 100644
--- a/devices/gdevtsep.c
+++ b/devices/gdevtsep.c
@@ -1184,7 +1184,7 @@ tiffsep_put_params(gx_device * pdev, gs_param_list * plist)
}
switch (code = param_read_int(plist, (param_name = "MaxSpots"), &max_spots)) {
case 0:
- if ((max_spots >= 0) || (max_spots <= GS_CLIENT_COLOR_MAX_COMPONENTS-4)) {
+ if ((max_spots >= 0) && (max_spots <= GS_CLIENT_COLOR_MAX_COMPONENTS-4)) {
pdevn->max_spots = max_spots;
break;
}
----------------------------------------------------------------------
commit 1170f928cc98b64a26edc275b66f081be9079cbb
Author: Ray Johnston <[email protected]>
Date: Wed Oct 16 08:04:34 2019 -0700
Fix bug 701719: Parens seem wrong -- fixed for clarity.
diff --git a/base/gxclthrd.c b/base/gxclthrd.c
index 833f9a5..e0d1718 100644
--- a/base/gxclthrd.c
+++ b/base/gxclthrd.c
@@ -416,7 +416,7 @@ clist_setup_render_threads(gx_device *dev, int y, gx_process_page_options_t *opt
if ((code = gdev_create_buf_device(cdev->buf_procs.create_buf_device,
&(thread->bdev), ndev,
band*crdev->page_band_height, NULL,
- thread->memory, &(crdev->color_usage_array[0])) < 0))
+ thread->memory, &(crdev->color_usage_array[0]))) < 0)
break;
if ((thread->sema_this = gx_semaphore_label(gx_semaphore_alloc(thread->memory), "Band")) == NULL ||
(thread->sema_group = gx_semaphore_label(gx_semaphore_alloc(thread->memory), "Group")) == NULL) {
Summary of changes:
base/gxclthrd.c | 2 +-
devices/gdevtsep.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)