diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2017-09-06 19:06:22 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2017-09-06 19:06:22 +0100 |
commit | 754e99239371ec4aa06a9728ae65028ac22c440c (patch) | |
tree | bef8028cebae3fc9e8a3d867551ee7e64209a6d0 /base/gxdevndi.c | |
parent | 6857ef647312daa24eb47417b09d823e8b59831d (diff) | |
download | ghostpdl-754e99239371ec4aa06a9728ae65028ac22c440c.tar.gz |
Coverity ID 94627
Guard the dereference of pdht with a NULL pointer test, to avoid a
potential seg fault.
Diffstat (limited to 'base/gxdevndi.c')
-rw-r--r-- | base/gxdevndi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/gxdevndi.c b/base/gxdevndi.c index 1b9bd1d7c..224d88fb9 100644 --- a/base/gxdevndi.c +++ b/base/gxdevndi.c @@ -144,7 +144,8 @@ gx_render_device_DeviceN(frac * pcolor, _color_set_c(pdevc, i, int_color[i], l_color[i]); gx_complete_halftone(pdevc, num_colors, pdht); - color_set_phase_mod(pdevc, ht_phase->x, ht_phase->y, + if (pdht) + color_set_phase_mod(pdevc, ht_phase->x, ht_phase->y, pdht->lcm_width, pdht->lcm_height); /* Determine if we are using only one component */ |