diff options
author | Werner Lemberg <wl@gnu.org> | 2018-06-25 18:38:04 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2018-06-25 18:38:04 +0200 |
commit | 589d1f0899343b18c3181f35451550dc1b904bef (patch) | |
tree | f786efe280941e3dfa23b76c1055534c42b7120b | |
parent | a632fb547e23fe129a579fabf60a992fd7d98d02 (diff) | |
download | freetype2-589d1f0899343b18c3181f35451550dc1b904bef.tar.gz |
* src/truetype/ttgxvar.c (tt_face_vary_cvt): Add initializers.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9070
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/truetype/ttgxvar.c | 38 |
2 files changed, 31 insertions, 15 deletions
@@ -1,3 +1,11 @@ +2018-06-25 Werner Lemberg <wl@gnu.org> + + * src/truetype/ttgxvar.c (tt_face_vary_cvt): Add initializers. + + Reported as + + https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9070 + 2018-06-24 Werner Lemberg <wl@gnu.org> [truetype] Increase precision while applying VF deltas. diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c index c9f0ba434..97462a6e9 100644 --- a/src/truetype/ttgxvar.c +++ b/src/truetype/ttgxvar.c @@ -3089,25 +3089,33 @@ tt_face_vary_cvt( TT_Face face, FT_Stream stream ) { - FT_Error error; - FT_Memory memory = stream->memory; - FT_ULong table_start; - FT_ULong table_len; - FT_UInt tupleCount; - FT_ULong offsetToData; - FT_ULong here; - FT_UInt i, j; - FT_Fixed* tuple_coords = NULL; - FT_Fixed* im_start_coords = NULL; - FT_Fixed* im_end_coords = NULL; - GX_Blend blend = face->blend; - FT_UInt point_count, spoint_count = 0; + FT_Error error; + FT_Memory memory = stream->memory; + + FT_ULong table_start; + FT_ULong table_len; + + FT_UInt tupleCount; + FT_ULong offsetToData; + + FT_ULong here; + FT_UInt i, j; + + FT_Fixed* tuple_coords = NULL; + FT_Fixed* im_start_coords = NULL; + FT_Fixed* im_end_coords = NULL; + + GX_Blend blend = face->blend; + + FT_UInt point_count; + FT_UInt spoint_count = 0; + FT_UShort* sharedpoints = NULL; FT_UShort* localpoints = NULL; FT_UShort* points; - FT_Fixed* deltas; - FT_Fixed* cvt_deltas; + FT_Fixed* deltas = NULL; + FT_Fixed* cvt_deltas = NULL; FT_TRACE2(( "CVAR " )); |