[gs-bugs] [Bug 691709] crash on page 4 of pdf

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Wed Oct 27 23:05:48 UTC 2010


http://bugs.ghostscript.com/show_bug.cgi?id=691709

--- Comment #4 from Daniel Dutkiewicz <dsdutkiewicz at msn.com> 2010-10-27 23:05:47 UTC ---
diff --git a/draw/imagesmooth.c b/draw/imagesmooth.c
index 1bdbedf..f8dfdc4 100644
--- a/draw/imagesmooth.c
+++ b/draw/imagesmooth.c
@@ -285,6 +285,7 @@ newweights(fz_scalefilter *filter, int src_w, float dst_w,
i
                return NULL;
        weights->count = -1;
        weights->max_len = max_len;
+       memset(weights->index, 0, (max_len+3)*(dst_w_i+1)*sizeof(int));
        weights->index[0] = dst_w_i;
        weights->n = n;
        weights->flip = flip;

zeroing the weight->index causes this to only be assertion failure with
SINGLE_PIXEL_SPECIALS and without it

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list