summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2018-09-04 11:18:48 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2018-09-06 07:41:14 -0700
commit5317e232d5a0309fc367d8bedb89988dd4bc38c9 (patch)
tree91525d138d6489e5096b1b3380cc925bfe41b5e4
parent1435e31660ba94909688dabf74b411ead3196384 (diff)
downloadghostpdl-5317e232d5a0309fc367d8bedb89988dd4bc38c9.tar.gz
Fix bit rot in RAW_DUMP and TRACK_COMPOSE_GROUPS
maskbuf is not defined in this particular path (as it is NULL)
-rw-r--r--base/gxblend.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/base/gxblend.c b/base/gxblend.c
index f6f94dfaf..d0f65f574 100644
--- a/base/gxblend.c
+++ b/base/gxblend.c
@@ -2285,12 +2285,7 @@ pdf14_compose_alphaless_group(pdf14_buf *tos, pdf14_buf *nos,
"bImageTOS",tos_ptr);
dump_raw_buffer(y1-y0, width, nos->n_planes, nos_planestride, nos->rowstride,
"cImageNOS",nos_ptr);
- if (maskbuf !=NULL && maskbuf->data != NULL) {
- dump_raw_buffer(maskbuf->rect.q.y - maskbuf->rect.p.y,
- maskbuf->rect.q.x - maskbuf->rect.p.x, maskbuf->n_planes,
- maskbuf->planestride, maskbuf->rowstride, "dMask",
- maskbuf->data);
- }
+ /* maskbuf is NULL in here */
#endif
/* You might hope that has_mask iff maskbuf != NULL, but this is
@@ -2308,7 +2303,7 @@ pdf14_compose_alphaless_group(pdf14_buf *tos, pdf14_buf *nos,
code += (!!tos_has_tag)<<4;
code += (!!additive)<<5;
code += (!!overprint)<<6;
- code += (!!has_mask || maskbuf != NULL)<<7;
+ code += (!!has_mask)<<7;
code += (backdrop_ptr != NULL)<<9;
code += (num_spots != 0)<<10;
code += blend_mode<<11;