diff --git a/src/sfnt/sfwoff2.c b/src/sfnt/sfwoff2.c index 7dec540b4..2be44a347 100644 --- a/src/sfnt/sfwoff2.c +++ b/src/sfnt/sfwoff2.c @@ -2266,7 +2266,8 @@ if ( woff2.uncompressed_size > MAX_SFNT_SIZE ) { FT_ERROR(( "Uncompressed font too large.\n" )); - return FT_THROW( Array_Too_Large ); + error = FT_THROW( Array_Too_Large ); + goto Exit; } /* Allocate memory for uncompressed table data. */