summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2016-10-11 16:07:40 +0100
committerChris Liddell <chris.liddell@artifex.com>2016-10-11 16:11:19 +0100
commita48d5240229d2a5cf9413ff2a425c40e2db03b8e (patch)
treebeb342f463718a6012abf0db78b30d35c475e21d
parenta34f71c530409a559c4cb35cb1a23296541d53c3 (diff)
downloadghostpdl-a48d5240229d2a5cf9413ff2a425c40e2db03b8e.tar.gz
xpswrite: Add color space to enumerated pointers
In the xps_image_enum_s the pointer to the color space (pcs) was not declared to the garbage collector, so could end up moving with the object being updated. Caused a segfault spotted in the weekly regression test (for EPSCrop, but that's not relevant)
-rw-r--r--devices/vector/gdevxps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/devices/vector/gdevxps.c b/devices/vector/gdevxps.c
index 23fcefdcb..f1034d597 100644
--- a/devices/vector/gdevxps.c
+++ b/devices/vector/gdevxps.c
@@ -152,10 +152,10 @@ typedef struct xps_image_enum_s {
FILE *fid;
} xps_image_enum_t;
-gs_private_st_suffix_add3(st_xps_image_enum, xps_image_enum_t,
+gs_private_st_suffix_add4(st_xps_image_enum, xps_image_enum_t,
"xps_image_enum_t", xps_image_enum_enum_ptrs,
xps_image_enum_reloc_ptrs, st_vector_image_enum,
- buffer, devc_buffer, pgs);
+ buffer, devc_buffer, pcs, pgs);
typedef struct gx_device_xps_s {
/* superclass state */