freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 986d503: * src/sfnt/ttload.c (tt_face_load_name): NUL


From: Werner Lemberg
Subject: [freetype2] master 986d503: * src/sfnt/ttload.c (tt_face_load_name): NULL-initialize langTag.
Date: Sun, 17 Oct 2021 09:18:04 -0400 (EDT)

branch: master
commit 986d503f4a89b13c17ddb5c1fa0cc1dc8ccc3676
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * 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
---
 src/sfnt/ttload.c | 3 +++
 1 file changed, 3 insertions(+)

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;
         }
       }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]