shithub: freetype+ttf2subf

Download patch

ref: 0c2bdb01a2e1d24a3e592377a6d0822856e10df2
parent: d014387ad4a5dd04d8e7f99587c7dacb70261924
author: Werner Lemberg <[email protected]>
date: Sat Mar 19 05:37:28 EDT 2022

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

Fixes #1140.

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -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 );