summaryrefslogtreecommitdiff
path: root/xps
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-02-17 09:30:25 +0000
committerRobin Watts <Robin.Watts@artifex.com>2022-02-17 11:26:06 +0000
commit88b3a4afbd307c534a6b94e25b85dfabedfb3e58 (patch)
treef2a5c4ce4ff55894615ec0731f7b6358fd56055e /xps
parent37a42b40b097e48370c48f18c491050fb2149c48 (diff)
downloadghostpdl-88b3a4afbd307c534a6b94e25b85dfabedfb3e58.tar.gz
Coverity 375566: Init ref counting entry for gs_halftone (xps)
For the stack based halftone, we want to set the reference counting data to zeros/NULLs - in this case, it is later copied into an actually reference counted, heap allocated object. Equivalent to 6849cc4774817a2afa2e6f4d77c1aa63e432352f in pdf/ Coverity 375605: Init ref counting entry for gs_halftone For the stack based halftone, we want to set the reference counting data to zeros/NULLs - in this case, it is later copied into an actually reference counted, heap allocated object.
Diffstat (limited to 'xps')
-rw-r--r--xps/xpstop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xps/xpstop.c b/xps/xpstop.c
index 35f677a5d..bd662bbc2 100644
--- a/xps/xpstop.c
+++ b/xps/xpstop.c
@@ -581,6 +581,7 @@ xps_install_halftone(xps_context_t *ctx, gx_device *pdevice)
if (gx_device_must_halftone(pdevice))
{
+ memset(&ht.rc, 0x00, sizeof(ht.rc));
ht.type = ht_type_threshold;
ht.objtype = HT_OBJTYPE_DEFAULT;
ht.params.threshold.width = width;