diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-11-12 16:27:06 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-11-12 16:59:03 +0100 |
commit | 9d1c199af467cd1138bf07c6f66a276e26875c99 (patch) | |
tree | 9a8ad6185035655951f53e1df6a7e96cd00f6419 /xps/xpsanalyze.c | |
parent | 0fa7177163f46c77f7928c520ddc3f90de4c59dc (diff) | |
download | ghostpdl-9d1c199af467cd1138bf07c6f66a276e26875c99.tar.gz |
xps: Fix buffer overflow in xps_parse_color.
Diffstat (limited to 'xps/xpsanalyze.c')
-rw-r--r-- | xps/xpsanalyze.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xps/xpsanalyze.c b/xps/xpsanalyze.c index a57bada4f..e9d6794ab 100644 --- a/xps/xpsanalyze.c +++ b/xps/xpsanalyze.c @@ -60,7 +60,7 @@ xps_gradient_stops_have_transparency(xps_context_t *ctx, char *base_uri, xps_ite xps_item_t *node; gs_color_space *colorspace; char *color_att; - float samples[32]; + float samples[XPS_MAX_COLORS]; for (node = xps_down(root); node; node = xps_next(node)) { @@ -123,7 +123,7 @@ xps_brush_has_transparency(xps_context_t *ctx, char *base_uri, xps_item_t *root) xps_item_t *node; gs_color_space *colorspace; - float samples[32]; + float samples[XPS_MAX_COLORS]; if (!strcmp(xps_tag(root), "SolidColorBrush")) { @@ -279,7 +279,7 @@ xps_element_has_transparency(xps_context_t *ctx, char *base_uri, xps_item_t *nod char *fill_att; gs_color_space *colorspace; - float samples[32]; + float samples[XPS_MAX_COLORS]; stroke_att = xps_att(node, "Stroke"); if (stroke_att) |