summaryrefslogtreecommitdiff
path: root/pdf/pdf_pattern.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-06-08 20:46:58 +0100
committerRobin Watts <robin.watts@artifex.com>2012-06-08 20:46:58 +0100
commitb42125b79edc28af6508145a24308674403a8460 (patch)
treec705cb39f6ecf7493f69a2a6dab0a8fcaa8d350b /pdf/pdf_pattern.c
parent65b8ae915465849babc1fa712971c701136f4ed5 (diff)
downloadmupdf-b42125b79edc28af6508145a24308674403a8460.tar.xz
Fix Bug 693097; memory overwrite when handling knockout groups.
When handling knockout groups, we have to copy the background from the previous group in so we can 'knockout' properly. If the previous group is a different colorspace, this gives us problems! The fix, implemented here, is to update the copy_pixmap_rect function to know how to copy between pixmaps of different depth. Gray <-> RGB are the ones we really care about; the generic code will probably do a horrible job, but shouldn't ever be called at present. This suffices to stop the crashing - we will probably revisit this when we revise the blending support.
Diffstat (limited to 'pdf/pdf_pattern.c')
0 files changed, 0 insertions, 0 deletions