From 589d1f0899343b18c3181f35451550dc1b904bef Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 25 Jun 2018 18:38:04 +0200 Subject: [PATCH] * src/truetype/ttgxvar.c (tt_face_vary_cvt): Add initializers. Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9070 --- ChangeLog | 8 ++++++++ src/truetype/ttgxvar.c | 38 +++++++++++++++++++++++--------------- 2 files changed, 31 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index f1d7eab05..49325f0f8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2018-06-25 Werner Lemberg + + * 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 [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 " ));