Commit 986d503f4a89b13c17ddb5c1fa0cc1dc8ccc3676

Alexei Podtelezhnikov 2021-10-17T09:14:27

* src/sfnt/ttload.c (tt_face_load_name): NULL-initialize langTag. Another attempt to fix fallout reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40024

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/sfnt/ttload.c b/src/sfnt/ttload.c
index 5c00b09..e07e392 100644
--- a/src/sfnt/ttload.c
+++ b/src/sfnt/ttload.c
@@ -939,6 +939,9 @@
             /* invalid entry; ignore it */
             entry->stringLength = 0;
           }
+
+          /* mark the string as not yet loaded */
+          entry->string = NULL;
         }
       }