summaryrefslogtreecommitdiff
path: root/base/gdevdrop.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2021-06-25 16:55:13 +0100
committerRobin Watts <Robin.Watts@artifex.com>2021-06-25 17:12:55 +0100
commit0d3e149d01a0fcfe22d7fbe447a66be62628efec (patch)
tree22f939e23789f3283d8b1ad77ace59deee6c3514 /base/gdevdrop.c
parenta48d9667ad2b0eb59cffef6c54303a21279243ca (diff)
downloadghostpdl-0d3e149d01a0fcfe22d7fbe447a66be62628efec.tar.gz
Revert change in unpack_colors_to_standard.
This change went in too early, and currently causes stack corruption. decode_color can overwrite 4 things on the stack when we are only expecting 3.
Diffstat (limited to 'base/gdevdrop.c')
-rw-r--r--base/gdevdrop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gdevdrop.c b/base/gdevdrop.c
index bf9ab5b44..b2c1234f8 100644
--- a/base/gdevdrop.c
+++ b/base/gdevdrop.c
@@ -241,7 +241,7 @@ unpack_colors_to_standard(gx_device * dev, gx_color_index real_colors[2],
gx_color_value rgb[3];
gx_color_index pixel;
- (*dev_proc(dev, decode_color)) (dev, colors[i], rgb);
+ (*dev_proc(dev, map_color_rgb)) (dev, colors[i], rgb);
pixel = gx_color_value_to_byte(rgb[0]);
if (depth > 8) {
pixel = (pixel << 16) +