[woff2] Clean up on large brotli expansion
* src/sfnt/sfwoff2.c (woff2_open_font): set error and goto cleanup Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=60711
This commit is contained in:
parent
336503dfd7
commit
dd3c9c5fec
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user