[gs-cvs] rev 8831 - trunk/gs/src
alexcher at ghostscript.com
alexcher at ghostscript.com
Thu Jul 10 22:06:07 PDT 2008
Author: alexcher
Date: 2008-07-10 22:06:07 -0700 (Thu, 10 Jul 2008)
New Revision: 8831
Modified:
trunk/gs/src/ttobjs.c
Log:
TrueType instruction definitions (IDEF) are addressed by a single byte index.
So there cannot be mode than 256 different instructions. Nevertheless, a
request a for larger array for instruction definitions should not be a fatal
error. Bug 689960, customer 330.
DIFFERENCES:
None
Modified: trunk/gs/src/ttobjs.c
===================================================================
--- trunk/gs/src/ttobjs.c 2008-07-10 23:36:00 UTC (rev 8830)
+++ trunk/gs/src/ttobjs.c 2008-07-11 05:06:07 UTC (rev 8831)
@@ -571,7 +571,7 @@
ins->numIDefs = maxp->maxInstructionDefs;
ins->countIDefs = 0;
if (maxp->maxInstructionDefs > 255)
- goto Fail_Memory;
+ maxp->maxInstructionDefs = 255; /* Bug 689960 */
memset(ins->IDefPtr, (Byte)ins->numIDefs, sizeof(ins->IDefPtr));
if (ins->numFDefs < 50)
ins->numFDefs = 50; /* Bug 687858 */
More information about the gs-cvs
mailing list