[gs-cvs] rev 7628 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Sun Jan 21 01:36:41 PST 2007
Author: leonardo
Date: 2007-01-21 01:36:41 -0800 (Sun, 21 Jan 2007)
New Revision: 7628
Modified:
trunk/gs/src/gxhintn.c
Log:
Fix (Type 1 hinter) A crash while recognizing a missed flex.
DETAILS :
Bug 688931 "gs segfaults in t1_hinter__fix_missed_flex".
The old code didn't check whether a contour has
enough poles for flex.
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/src/gxhintn.c
===================================================================
--- trunk/gs/src/gxhintn.c 2007-01-21 09:35:30 UTC (rev 7627)
+++ trunk/gs/src/gxhintn.c 2007-01-21 09:36:41 UTC (rev 7628)
@@ -1140,7 +1140,7 @@
return;
contour_beg = this->contour[this->contour_count -1];
contour_end = this->pole_count - 1; /* the last contour's 'closepath'. */
- if (contour_beg >= contour_end)
+ if (contour_beg + 8 >= contour_end)
return;
for (k = 0; k < 2; k++) {
t1_glyph_space_coord *p_gc = (!k ? &this->pole[0].gx : &this->pole[0].gy);
More information about the gs-cvs
mailing list