summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2018-03-14 13:09:58 +0000
committerRobin Watts <robin.watts@artifex.com>2018-03-14 13:10:59 +0000
commitb925766ea8794f1924ce0dea9fa942966dea3350 (patch)
tree7acb003820d75f8edab64d09b9dda5c11b21d6b1 /source
parent3afca2bb825017a55aadb67beb1d3318ce5f5c56 (diff)
downloadmupdf-b925766ea8794f1924ce0dea9fa942966dea3350.tar.xz
Bug 699109: Fix overwrites with COP renderer.
Diffstat (limited to 'source')
-rw-r--r--source/fitz/draw-edgebuffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/fitz/draw-edgebuffer.c b/source/fitz/draw-edgebuffer.c
index ffc892e1..83e77d44 100644
--- a/source/fitz/draw-edgebuffer.c
+++ b/source/fitz/draw-edgebuffer.c
@@ -1587,6 +1587,7 @@ static void fz_convert_edgebuffer(fz_context *ctx, fz_rasterizer *ras, int eofil
a = pix->alpha;
pl = fz_maxi(ras->clip.x0, pix->x);
pr = fz_mini(ras->clip.x1, pix->x + pix->w);
+ pr -= pl;
out = pix->samples + pix->stride * fz_maxi(ras->clip.y0 - pix->y, 0) + fz_maxi(ras->clip.x0 - pix->x, 0) * n;
if (scanlines > pix->y + pix->h - ras->clip.y0)
scanlines = pix->y + pix->h - ras->clip.y0;