forked from minhngoc25a/freetype2
* 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:
parent
614a8f17c7
commit
b663307320
|
@ -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.
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue