ref: b66330732060af27d0f5414943e1ad378af3d5e3
parent: 614a8f17c7bd931e99ebbf70308fe75ee27eb8e7
author: Werner Lemberg <[email protected]>
date: Tue Mar 22 04:26:55 EDT 2016
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Minor. This fixes an AddressSanitizer issue: ttgload.c:430:7: runtime error: null pointer passed as argument 1, which is declared to never be null
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2016-03-22 Werner Lemberg <[email protected]>
+
+ * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Minor.
+
+ This fixes an AddressSanitizer issue:
+
+ ttgload.c:430:7: runtime error: null pointer passed as argument 1,
+ which is declared to never be null
+
2016-03-21 Werner Lemberg <[email protected]>
* src/autofit/afhints.c (af_glyph_hints_reload): Thinko.
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -427,7 +427,8 @@
load->glyph->control_len = n_ins;
load->glyph->control_data = load->exec->glyphIns;
- FT_MEM_COPY( load->exec->glyphIns, p, (FT_Long)n_ins );
+ if ( n_ins )
+ FT_MEM_COPY( load->exec->glyphIns, p, (FT_Long)n_ins );
}
#endif /* TT_USE_BYTECODE_INTERPRETER */