Commit 837ad9d4115018f6b67fe832fdd7b68efee20c49

Werner Lemberg 2015-10-15T21:15:45

* src/truetype/ttinterp.c (TT_RunIns): Fix bytecode stack tracing. The used indices were off by 1.

diff --git a/ChangeLog b/ChangeLog
index 0edd845..e5b0c45 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-10-15  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttinterp.c (TT_RunIns): Fix bytecode stack tracing.
+
+	The used indices were off by 1.
+
 2015-10-15  Bungeman  <bungeman@gmail.com>
 	    Werner Lemberg  <wl@gnu.org>
 
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index ae2a82a..85e409e 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -7565,7 +7565,7 @@
                               ? 2
                               : 12 - ( *opcode_name[exc->opcode] - '0' ),
                               "#" ));
-        for ( n = 0; n < cnt; n++ )
+        for ( n = 1; n <= cnt; n++ )
           FT_TRACE7(( " %d", exc->stack[exc->top - n] ));
         FT_TRACE6(( "\n" ));
       }