Commit 0c2bdb01 authored by Werner Lemberg's avatar Werner Lemberg
Browse files

* src/base/ftobjs.c (FT_Request_Size): Guard `face->size`.

Fixes #1140.
parent d014387a
Pipeline #536109 passed with stage
in 10 minutes and 20 seconds
......@@ -3409,6 +3409,9 @@
if ( !face )
return FT_THROW( Invalid_Face_Handle );
if ( !face->size )
return FT_THROW( Invalid_Size_Handle );
if ( !req || req->width < 0 || req->height < 0 ||
req->type >= FT_SIZE_REQUEST_TYPE_MAX )
return FT_THROW( Invalid_Argument );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment