diff --git a/ChangeLog b/ChangeLog index 58c61ac32..28e726da1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-08-03 Werner Lemberg + + * src/truetype/ttgload.c (load_truetype_glyph) + [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Fix crash for composite glyphs + having a depth greater than 1. + 2015-08-03 Werner Lemberg Fix typo in clang bug from 2015-07-31 (#45678). diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index 979b74bc1..204248fb2 100644 --- a/src/truetype/ttgload.c +++ b/src/truetype/ttgload.c @@ -1702,7 +1702,7 @@ FT_NEW_ARRAY( contours, outline.n_points ) ) goto Exit1; - subglyph = gloader->current.subglyphs + gloader->base.num_subglyphs; + subglyph = gloader->current.subglyphs; for ( i = 0; i < limit; i++, subglyph++ ) { @@ -1751,7 +1751,7 @@ (FT_UInt)outline.n_points ) ) != 0 ) goto Exit1; - subglyph = gloader->current.subglyphs + gloader->base.num_subglyphs; + subglyph = gloader->current.subglyphs; for ( i = 0; i < limit; i++, subglyph++ ) {