* src/sfnt/sfwoff2.c (woff2_open_font): Partial revert.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47981.
This commit is contained in:
Alexei Podtelezhnikov 2022-06-12 09:04:13 -04:00
parent e7482ff4c2
commit 8b6bcc92c5
1 changed files with 2 additions and 1 deletions

View File

@ -2004,7 +2004,8 @@
FT_TRACE4(( "Number of fonts in TTC: %d\n", woff2.num_fonts ));
if ( FT_QNEW_ARRAY( woff2.ttc_fonts, woff2.num_fonts ) )
/* pre-zero pointers within in case of failure */
if ( FT_NEW_ARRAY( woff2.ttc_fonts, woff2.num_fonts ) )
goto Exit;
for ( nn = 0; nn < woff2.num_fonts; nn++ )