[type1] Correctly handle missing MM axis names (#46202). * src/type1/t1load.c (T1_Get_MM_Var): Implement it.
diff --git a/ChangeLog b/ChangeLog
index aa5c7b5..f9615d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2015-10-13 Werner Lemberg <wl@gnu.org>
+ [type1] Correctly handle missing MM axis names (#46202).
+
+ * src/type1/t1load.c (T1_Get_MM_Var): Implement it.
+
+2015-10-13 Werner Lemberg <wl@gnu.org>
+
[pcf] Quickly exit if font index < 0.
Similar to other font formats, this commit makes the parser no
diff --git a/src/type1/t1load.c b/src/type1/t1load.c
index 01fb60f..4ce1e35 100644
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -336,6 +336,9 @@
mmvar->axis[i].strid = ~0U; /* Does not apply */
mmvar->axis[i].tag = ~0U; /* Does not apply */
+ if ( !mmvar->axis[i].name )
+ continue;
+
if ( ft_strcmp( mmvar->axis[i].name, "Weight" ) == 0 )
mmvar->axis[i].tag = FT_MAKE_TAG( 'w', 'g', 'h', 't' );
else if ( ft_strcmp( mmvar->axis[i].name, "Width" ) == 0 )