[gs-cvs] gs/lib

Ray Johnston ray at ghostscript.com
Sun Jul 17 22:51:59 PDT 2005


Update of /cvs/ghostscript/gs/lib
In directory casper2:/tmp/cvs-serv21164/lib

Modified Files:
	gs_cff.ps 
Log Message:
Skip CFF tables at 0 or negative offset because some CFF fonts put empty tables
at offset 0. Bug 688160. Thanks to Alex Cherepanov for this patch.



Index: gs_cff.ps
===================================================================
RCS file: /cvs/ghostscript/gs/lib/gs_cff.ps,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- gs_cff.ps	18 Jul 2005 05:33:12 -0000	1.18
+++ gs_cff.ps	18 Jul 2005 05:51:57 -0000	1.19
@@ -314,9 +314,14 @@
 % ------ Top dictionary ------ %
 
 /offput {	% <offset> <proc> offput -
-  CFFDEBUG { (queued: ) print 1 index =only ( ) print dup === } if
-  currentdict exch aload length 1 add packedarray cvx
-  offsets 3 1 roll put
+  1 index 0 le
+  CFFDEBUG { dup { (not ) print } if (queued: ) print 2 index =only ( ) print 1 index === } if
+  { pop pop
+  }
+  { currentdict exch aload length 1 add packedarray cvx
+      offsets 3 1 roll put
+  }
+  ifelse
 } bind def
 /queueput {	% <font> <proc> queueput -
   16#7fffffff offsets { pop .min } forall



More information about the gs-cvs mailing list