[gs-cvs] rev 8762 - trunk/gs/src

leonardo at ghostscript.com leonardo at ghostscript.com
Wed May 21 06:42:09 PDT 2008


Author: leonardo
Date: 2008-05-21 06:42:08 -0700 (Wed, 21 May 2008)
New Revision: 8762

Modified:
   trunk/gs/src/gxhintn.c
Log:
Fix (Type 1 hinter) : The missed flex hewristic malfunctioned.

DETAILS :

Bug 689821 "SegFault in gxhintn.c".

The old code is buggy with a wrong index advance along a cyclic buffer range.

EXPECTED DIFFERENCES :

None.


Modified: trunk/gs/src/gxhintn.c
===================================================================
--- trunk/gs/src/gxhintn.c	2008-05-21 10:12:14 UTC (rev 8761)
+++ trunk/gs/src/gxhintn.c	2008-05-21 13:42:08 UTC (rev 8762)
@@ -1173,11 +1173,11 @@
 	    if (gcj < gc0 || gcj > gc1)
 		break;
 	}
-	i++;
 	if (i == contour_end) {
 	    i = contour_beg;
 	    wrapped = true;
-	}
+	} else
+	    i++;
 	/* Forward search for all platues. */
 	for (;;i++) {
 	    prev_dir = 0;



More information about the gs-cvs mailing list