shithub: freetype+ttf2subf

Download patch

ref: 59b43ae663c816a14301cdf9e5adbaca4d254bae
parent: 073ff2d77e31cc256a2ed3ba78ba4d6f1fda26e2
author: Alexei Podtelezhnikov <[email protected]>
date: Mon Sep 13 12:16:18 EDT 2021

* src/base/ftobjs.c (FT_CMap_New): Revert to zeroing.

Fixes fallout from c1fa7aa2bc96, reported as

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

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -3753,7 +3753,7 @@
     face   = charmap->face;
     memory = FT_FACE_MEMORY( face );
 
-    if ( !FT_QALLOC( cmap, clazz->size ) )
+    if ( !FT_ALLOC( cmap, clazz->size ) )
     {
       cmap->charmap = *charmap;
       cmap->clazz   = clazz;