forked from minhngoc25a/freetype2
* 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:
parent
e7482ff4c2
commit
8b6bcc92c5
|
@ -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++ )
|
||||
|
|
Loading…
Reference in New Issue