ref: 5b05bc6638df2cac9622f03338253a720604d1be
parent: f8c20577897d17fb8a62e64fa3bf3ebec0691608
author: Werner Lemberg <[email protected]>
date: Tue Dec 1 07:09:02 EST 2015
[type1] Avoid dangling pointer (#46572). * src/type1/t1afm.c (T1_Read_Metrics): Properly reset `face->afm_data'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-12-01 Werner Lemberg <[email protected]>
+
+ [type1] Avoid dangling pointer (#46572).
+
+ * src/type1/t1afm.c (T1_Read_Metrics): Properly reset
+ `face->afm_data'.
+
2015-11-28 Alexei Podtelezhnikov <[email protected]>
* include/freetype/ftlcdfil.h: Documentation tweak.
--- a/src/type1/t1afm.c
+++ b/src/type1/t1afm.c
@@ -248,6 +248,8 @@
FT_TRACE1(( "T1_Read_Metrics:"
" Freeing previously attached metrics data.\n" ));
T1_Done_Metrics( memory, (AFM_FontInfo)face->afm_data );
+
+ face->afm_data = NULL;
}
if ( FT_NEW( fi ) ||