shithub: freetype+ttf2subf

Download patch

ref: 2ec6feaf39910d06119164912dad6e9841eec2d0
parent: caff87b1f939d9141232d7de0d2350d4c0cf34d6
author: Werner Lemberg <[email protected]>
date: Tue Apr 27 09:28:35 EDT 2021

* src/psmodule.c (ps_unicodes_init): Ignore empty glyph names.

Reported as

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

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-04-27  Werner Lemberg  <[email protected]>
+
+	* src/psmodule.c (ps_unicodes_init): Ignore empty glyph names.
+
+	Reported as
+
+	  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=33637
+
 2021-04-26  Alexei Podtelezhnikov  <[email protected]>
 
 	* src/sfnt/sfobjs.c (sfnt_init_face): Revert macro change.
--- a/src/psnames/psmodule.c
+++ b/src/psnames/psmodule.c
@@ -343,7 +343,7 @@
         const char*  gname = get_glyph_name( glyph_data, n );
 
 
-        if ( gname )
+        if ( gname && *gname )
         {
           ps_check_extra_glyph_name( gname, n,
                                      extra_glyphs, extra_glyph_list_states );