[cff] Revert last change.

* src/cff/cffgload.c (cff_decoder_parse_charstrings): Do it.
Next time, don't confuse Type 2 charstring opcodes with TOP DICT
values...
This commit is contained in:
Werner Lemberg 2009-06-20 07:31:44 +02:00
parent b34c9b49cc
commit 541ab5adda
2 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2009-06-20 Werner Lemberg <wl@gnu.org>
[cff] Revert last change.
* src/cff/cffgload.c (cff_decoder_parse_charstrings): Do it.
Next time, don't confuse Type 2 charstring opcodes with TOP DICT
values...
2009-06-20 Werner Lemberg <wl@gnu.org>
* src/autofit/aflatin.c (af_latin_metrics_check_digits): Fix

View File

@ -938,9 +938,17 @@
goto Syntax_Error;
val = -( (FT_Long)v - 251 ) * 256 - *ip++ - 108;
}
else /* 255 */
goto Syntax_Error;
else
{
if ( ip + 3 >= limit )
goto Syntax_Error;
val = ( (FT_Int32)ip[0] << 24 ) |
( (FT_Int32)ip[1] << 16 ) |
( (FT_Int32)ip[2] << 8 ) |
ip[3];
ip += 4;
shift = 0;
}
if ( decoder->top - stack >= CFF_MAX_OPERANDS )
goto Stack_Overflow;