* src/sfnt/sfwoff2 (woff2_open_font): Initialize `woff2.ttc_fonts'.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17804
This commit is contained in:
Werner Lemberg 2019-10-01 00:15:25 +02:00
parent 839a023619
commit 94815d6efa
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2019-10-01 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfwoff2 (woff2_open_font): Initialize `woff2.ttc_fonts'.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17804
2019-09-30 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfwoff2.c (reconstruct_font): Fix memory leak.

View File

@ -1816,6 +1816,8 @@
FT_TRACE2(( "woff2_open_font: WOFF2 Header is valid.\n" ));
woff2.ttc_fonts = NULL;
/* Read table directory. */
if ( FT_NEW_ARRAY( tables, woff2.num_tables ) ||
FT_NEW_ARRAY( indices, woff2.num_tables ) )