mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-05 07:48:00 +02:00
another hack
This commit is contained in:
parent
782f13831e
commit
b0e0db116d
1 changed files with 4 additions and 0 deletions
4
src/cache/ftccmap.c
vendored
4
src/cache/ftccmap.c
vendored
|
|
@ -375,6 +375,10 @@
|
|||
|
||||
FT_ASSERT( (FT_UInt)( char_code - node->first ) < FTC_CMAP_INDICES_MAX );
|
||||
|
||||
/* something rotten can happen with rogue clients */
|
||||
if ( (FT_UInt)( char_code - node->first >= FTC_CMAP_INDICES_MAX )
|
||||
return 0;
|
||||
|
||||
gindex = node->indices[char_code - node->first];
|
||||
if ( gindex == FTC_CMAP_UNKNOWN )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue