[gs-cvs] rev 8797 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Sat Jun 21 07:06:00 PDT 2008
Author: leonardo
Date: 2008-06-21 07:06:00 -0700 (Sat, 21 Jun 2008)
New Revision: 8797
Modified:
trunk/gs/src/ttobjs.c
Log:
Fix (TT interpreter) : A work around a wrong maxPoints.
DETAILS :
Bug 689907 "problem reading PDF: Failed to interpret TT instructions in font 80000001".
The test csae embeds a TT font subset with an incorrect maxPoints.
This is a simple work around that.
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/src/ttobjs.c
===================================================================
--- trunk/gs/src/ttobjs.c 2008-06-16 16:12:37 UTC (rev 8796)
+++ trunk/gs/src/ttobjs.c 2008-06-21 14:06:00 UTC (rev 8797)
@@ -306,6 +306,8 @@
n_points = face->maxPoints + 2;
n_twilight = maxp->maxTwilightPoints;
+ if (n_points < 100)
+ n_points = 100; /* Bug 689907 */
if ( ALLOC_ARRAY( exec->callStack, exec->callSize, callSize, TCallRecord ) ||
/* reserve interpreter call stack */
More information about the gs-cvs
mailing list