From 9f5b5881b55492b14e55cffa3ac962f454721639 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 24 Jan 2012 15:23:32 +0000 Subject: 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. --- draw/draw_device.c | 1 + 1 file changed, 1 insertion(+) (limited to 'draw') 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 -- cgit v1.2.3