[gs-bugs] [Bug 692553] Exception reading PDF file

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Mon Oct 3 12:28:46 UTC 2011


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

--- Comment #11 from Robin Watts <robin.watts at artifex.com> 2011-10-03 12:28:46 UTC ---
@@ -686,6 +688,8 @@ gxht_thresh_plane(gx_image_enum *penum, gx_ht_order
*d_order
             for (k = 0; k < vdi; k++) {
                 /* Get a pointer to our tile row */
                 dy = (penum->yci + k + penum->dev->band_offset_y) %
thresh_height;
+                if (dy < 0)
+                    dy += thresh_height;
                 thresh_tile = threshold + d_order->width * dy;
                 /* Fill the buffer, can be multiple rows.  Make sure
                    to update with stride */

Should fix it (and indeed does seem to here). I'll leave this to Michael to
commit in case I am patching a symptom rather than a cause.

-- 
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