Commit 59b43ae663c816a14301cdf9e5adbaca4d254bae

Alexei Podtelezhnikov 2021-09-13T16:16:18

* 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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 7a09acf..c4ade35 100644
--- 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;