Commit 2ec6feaf39910d06119164912dad6e9841eec2d0

Werner Lemberg 2021-04-27T13:28:35

* src/psmodule.c (ps_unicodes_init): Ignore empty glyph names. Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=33637

diff --git a/ChangeLog b/ChangeLog
index d59aab6..b6f4d77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-04-27  Werner Lemberg  <wl@gnu.org>
+
+	* 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  <apodtele@gmail.com>
 
 	* src/sfnt/sfobjs.c (sfnt_init_face): Revert macro change.
diff --git a/src/psnames/psmodule.c b/src/psnames/psmodule.c
index c22ce53..411b2e3 100644
--- 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 );