diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-01-24 15:23:32 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-01-24 15:23:32 +0000 |
commit | 9f5b5881b55492b14e55cffa3ac962f454721639 (patch) | |
tree | b58beb434d5003f7565f919fd70621fcebd3e22f /draw/draw_device.c | |
parent | dbbd539088760077581f72787ca9adbbeb9e569e (diff) | |
download | mupdf-9f5b5881b55492b14e55cffa3ac962f454721639.tar.xz |
Solve (some) SEGVS in cluster tests.
The cluster testing of MuPDF repeatedly crashes on
pdf/PDF_1.7_FTS/fts_20_2008.pdf. Investigation shows this is because
we fail to write the newly allocated mask back to the graphics
state stack when starting a clip_stroke_text drawing operation.
This causes later pops to fall over.
Simple fix.
Diffstat (limited to 'draw/draw_device.c')
-rw-r--r-- | draw/draw_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/draw/draw_device.c b/draw/draw_device.c index 89169ab6..181a0000 100644 --- a/draw/draw_device.c +++ b/draw/draw_device.c @@ -688,6 +688,7 @@ fz_draw_clip_stroke_text(fz_device *devp, fz_text *text, fz_stroke_state *stroke state[1].scissor = bbox; state[1].dest = dest; state[1].shape = shape; + state[1].mask = mask; #ifdef DUMP_GROUP_BLENDS dump_spaces(dev->top-1, "Clip (stroke text) begin\n"); #endif |