* src/truetype/ttinterp.c (TT_RunIns): Fix bytecode stack tracing.

The used indices were off by 1.
This commit is contained in:
Werner Lemberg 2015-10-15 21:15:45 +02:00
parent 8b76eaf092
commit 837ad9d411
2 changed files with 7 additions and 1 deletions

View File

@ -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>

View File

@ -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" ));
}