diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2023-02-07 18:19:20 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2023-02-08 15:36:40 +0000 |
commit | eecd33392f90b77853a0d2ba64d115eec34890a3 (patch) | |
tree | 64cf3732a9f975c7bb7a13a90145afb0eb3833d2 /base/gxipixel.c | |
parent | 71d572e6b72d209b99f34b311298d51eac32fbb1 (diff) | |
download | ghostpdl-eecd33392f90b77853a0d2ba64d115eec34890a3.tar.gz |
Add "imagematrices_are_untrustworthy" to gs_data_image_t
The pdfwrite device can 'rewrite' the image matrixes in a
particularly nasty way that is not easy to avoid. It does this
to be able to capture images with masks of a different size.
Unfortunately, this breaks any possibility of us using the
imagematrix to figure out which source region of the image
we actually need for clipping.
Introduce a new flag to capture when this happens so we can
avoid relying on an untrustworthy imagematrix.
Diffstat (limited to 'base/gxipixel.c')
-rw-r--r-- | base/gxipixel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gxipixel.c b/base/gxipixel.c index 8b81aaa56..26b4d7667 100644 --- a/base/gxipixel.c +++ b/base/gxipixel.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2022 Artifex Software, Inc. +/* Copyright (C) 2001-2023 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or @@ -432,7 +432,7 @@ gx_image_enum_begin(gx_device * dev, const gs_gstate * pgs, } /* Can we restrict the amount of image we need? */ - while (pcpath) /* So we can break out of it */ + while (pcpath && !pim->imagematrices_are_untrustworthy) /* So we can break out of it */ { gs_rect rect, rect_src; gs_matrix mi; |