summaryrefslogtreecommitdiff
path: root/xps/xpsglyphs.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-11-12 16:27:06 +0100
committerTor Andersson <tor.andersson@artifex.com>2015-11-12 16:59:03 +0100
commit9d1c199af467cd1138bf07c6f66a276e26875c99 (patch)
tree9a8ad6185035655951f53e1df6a7e96cd00f6419 /xps/xpsglyphs.c
parent0fa7177163f46c77f7928c520ddc3f90de4c59dc (diff)
downloadghostpdl-9d1c199af467cd1138bf07c6f66a276e26875c99.tar.gz
xps: Fix buffer overflow in xps_parse_color.
Diffstat (limited to 'xps/xpsglyphs.c')
-rw-r--r--xps/xpsglyphs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xps/xpsglyphs.c b/xps/xpsglyphs.c
index 8847e3ee2..33a0a215c 100644
--- a/xps/xpsglyphs.c
+++ b/xps/xpsglyphs.c
@@ -641,7 +641,7 @@ xps_parse_glyphs(xps_context_t *ctx,
if (fill_att)
{
- float samples[32];
+ float samples[XPS_MAX_COLORS];
gs_color_space *colorspace;
xps_parse_color(ctx, base_uri, fill_att, &colorspace, samples);