Summary: | SEGV due to uninitialised device colour pattern in clist | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Robin Watts <robin.watts> |
Component: | Graphics Library | Assignee: | Ray Johnston <ray.johnston> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | All | ||
Customer: | Word Size: | --- | |
Attachments: | test.pdf |
Description
Robin Watts
2011-05-20 13:21:16 UTC
I can reproduce this on Windows 32-bit build. Looking into it... This was caused by a clip device created for tiling a mask with a transparent pattern rendered with a clist. The clip device used for rendering did not get its color_info updated when its target (pdf14) changed the color_info, specifically the depth. Fixed by grabbing the target color_info after calling the target's compositor. I did check other "forwarding" devices and this is (AFAICT) the only device that uses the gx_forward_create_compositor function and so this _should_ have no effect on any other devices, and it is (IMHO) a reasonable assumption in any other current or future forwarding devices that the default forwarding function will take care of the 'color_info' change during the forwarded create_compositor call. Committed: http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=25de59220e9472e6de1acc046c317141a1751770 |