* src/base/ftobjs.c (FT_Request_Size): Guard `face->size`.
Fixes #1140.
This commit is contained in:
parent
d014387ad4
commit
0c2bdb01a2
|
@ -3409,6 +3409,9 @@
|
||||||
if ( !face )
|
if ( !face )
|
||||||
return FT_THROW( Invalid_Face_Handle );
|
return FT_THROW( Invalid_Face_Handle );
|
||||||
|
|
||||||
|
if ( !face->size )
|
||||||
|
return FT_THROW( Invalid_Size_Handle );
|
||||||
|
|
||||||
if ( !req || req->width < 0 || req->height < 0 ||
|
if ( !req || req->width < 0 || req->height < 0 ||
|
||||||
req->type >= FT_SIZE_REQUEST_TYPE_MAX )
|
req->type >= FT_SIZE_REQUEST_TYPE_MAX )
|
||||||
return FT_THROW( Invalid_Argument );
|
return FT_THROW( Invalid_Argument );
|
||||||
|
|
Loading…
Reference in New Issue