diff --git a/src/sfnt/sfwoff2.c b/src/sfnt/sfwoff2.c index 49ad5cc81..fecae276c 100644 --- a/src/sfnt/sfwoff2.c +++ b/src/sfnt/sfwoff2.c @@ -2257,13 +2257,6 @@ goto Exit; } - if ( woff2.uncompressed_size > sfnt_size ) - { - FT_ERROR(( "woff2_open_font: SFNT table lengths are too large.\n" )); - error = FT_THROW( Invalid_Table ); - goto Exit; - } - /* Allocate memory for uncompressed table data. */ if ( FT_QALLOC( uncompressed_buf, woff2.uncompressed_size ) || FT_FRAME_ENTER( woff2.totalCompressedSize ) )