mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-06-10 02:48:18 +02:00
* src/psaux/psintrp.c (cf2_interpT2CharString): Fix off-by-one in the subroutine nesting depth check.
Fixes #1432.
This commit is contained in:
parent
1ec3406aef
commit
968af86bec
1 changed files with 2 additions and 2 deletions
|
|
@ -988,8 +988,8 @@
|
|||
FT_TRACE4(( "%s", op1 == cf2_cmdCALLGSUBR ? " callgsubr"
|
||||
: " callsubr" ));
|
||||
|
||||
if ( ( !font->isT1 && charstringIndex > CF2_MAX_SUBR ) ||
|
||||
( font->isT1 && charstringIndex > T1_MAX_SUBRS_CALLS ) )
|
||||
if ( ( !font->isT1 && charstringIndex >= CF2_MAX_SUBR ) ||
|
||||
( font->isT1 && charstringIndex >= T1_MAX_SUBRS_CALLS ) )
|
||||
{
|
||||
/* max subr plus one for charstring */
|
||||
lastError = FT_THROW( Invalid_Glyph_Format );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue