* 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
This commit is contained in:
Werner Lemberg 2016-03-22 08:26:55 +01:00
parent 614a8f17c7
commit b663307320
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2016-03-22 Werner Lemberg <wl@gnu.org>
* 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 <wl@gnu.org>
* src/autofit/afhints.c (af_glyph_hints_reload): Thinko.

View File

@ -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 */