summaryrefslogtreecommitdiff
path: root/src/sfnt/ttload.c
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2021-10-17 09:14:27 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2021-10-17 09:14:27 -0400
commit986d503f4a89b13c17ddb5c1fa0cc1dc8ccc3676 (patch)
tree8cb449a8652f776cc0c4d6de75f2952234be5335 /src/sfnt/ttload.c
parent30ca63d4fb5933cad2547a73f78c25b920266d44 (diff)
downloadfreetype2-986d503f4a89b13c17ddb5c1fa0cc1dc8ccc3676.tar.gz
* 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
Diffstat (limited to 'src/sfnt/ttload.c')
-rw-r--r--src/sfnt/ttload.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sfnt/ttload.c b/src/sfnt/ttload.c
index 5c00b09fd..e07e39279 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;
}
}