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

leonardo at ghostscript.com leonardo at ghostscript.com
Thu Aug 30 22:43:45 PDT 2007


Author: leonardo
Date: 2007-08-30 22:43:44 -0700 (Thu, 30 Aug 2007)
New Revision: 8220

Modified:
   trunk/gs/src/gxhintn1.c
Log:
Fix (Type 1 hinter) : Infinite loop in t1_hinter__fix_subglyph_contour_signs.

DETAILS :

Bug 689298 "Infinite loop in t1_hinter__fix_subglyph_contour_signs()".

Well it's a student level error in the algorithm.
Thanks to Alex for the test case with 5 nesting contours.

EXPECTED DIFFERENCES :

None.


Modified: trunk/gs/src/gxhintn1.c
===================================================================
--- trunk/gs/src/gxhintn1.c	2007-08-31 04:47:58 UTC (rev 8219)
+++ trunk/gs/src/gxhintn1.c	2007-08-31 05:43:44 UTC (rev 8220)
@@ -652,8 +652,9 @@
 				/* Cycled - don't fix. */
 				return;
 			    }
+			    if (!inside[i][l])
+				m = 1;
 			    inside[i][l] = 1;
-			    m = 1;
 			}
 		    }
 		}



More information about the gs-cvs mailing list