diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2021-06-25 16:55:13 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2021-06-25 17:12:55 +0100 |
commit | 0d3e149d01a0fcfe22d7fbe447a66be62628efec (patch) | |
tree | 22f939e23789f3283d8b1ad77ace59deee6c3514 /base/gdevdrop.c | |
parent | a48d9667ad2b0eb59cffef6c54303a21279243ca (diff) | |
download | ghostpdl-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.c | 2 |
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) + |