mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-16 20:18:07 +02:00
cpp-conditionalize a check for int width or height > 64k, because it is always false on 16bit system.
This commit is contained in:
parent
12ef16a44b
commit
df9094492d
1 changed files with 2 additions and 0 deletions
|
|
@ -166,11 +166,13 @@
|
|||
height = (FT_UInt)( ( cbox.yMax - cbox.yMin ) >> 6 );
|
||||
}
|
||||
|
||||
#if FT_UINT_MAX > 0xFFFFUL
|
||||
if ( width > FT_USHORT_MAX || height > FT_USHORT_MAX )
|
||||
{
|
||||
error = FT_THROW( Invalid_Argument );
|
||||
goto Exit;
|
||||
}
|
||||
#endif
|
||||
|
||||
bitmap = &slot->bitmap;
|
||||
memory = render->root.memory;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue