shithub: freetype+ttf2subf

Download patch

ref: 639a02154b36fea925a145061138385164932c4c
parent: 33626164e8eacef4856b8358c49fdf09c5d98162
author: Werner Lemberg <[email protected]>
date: Tue Jan 11 04:14:48 EST 2022

* src/type42/t42objs.c (T42_Open_Face): Avoid use of uninitialized memory.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43508

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/type42/t42objs.c
+++ b/src/type42/t42objs.c
@@ -44,7 +44,8 @@
 
     parser = &loader.parser;
 
-    if ( FT_QALLOC( face->ttf_data, 12 ) )
+    /* To handle buggy fonts we don't use `FT_QALLOC` here. */
+    if ( FT_ALLOC( face->ttf_data, 12 ) )
       goto Exit;
 
     /* while parsing the font we always update `face->ttf_size' so that */