shithub: freetype+ttf2subf

Download patch

ref: d90567b1e6f5d50c259dc554ff294f4588a617ad
parent: e1e723012d6ce9ea9d276254a6f7519a0c810d32
author: Werner Lemberg <[email protected]>
date: Sun Oct 18 06:47:11 EDT 2009

Fix handling of `dup' CFF instruction.
Problem and solution reported by Ning Dong <[email protected]>.

* src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_dup>:
Increase `args' by 2, not 1.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-10-18  Werner Lemberg  <[email protected]>
+
+	Fix handling of `dup' CFF instruction.
+	Problem and solution reported by Ning Dong <[email protected]>.
+
+	* src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_dup>:
+	Increase `args' by 2, not 1.
+
 2009-10-10  Werner Lemberg  <[email protected]>
 
 	* Version 2.3.11 released.
--- a/src/cff/cffgload.c
+++ b/src/cff/cffgload.c
@@ -2106,7 +2106,7 @@
           FT_TRACE4(( " dup\n" ));
 
           args[1] = args[0];
-          args++;
+          args += 2;
           break;
 
         case cff_op_put: