* src/sfnt/sfwoff2.c (woff2_open_font): Check table index.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17100
This commit is contained in:
Werner Lemberg 2019-09-17 13:22:28 +02:00
parent cc17f852d5
commit 99f23d6ff2
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2019-09-17 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfwoff2.c (woff2_open_font): Check table index.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17100
2019-09-15 Avi Halachmi (:avih) <avihpit@yahoo.com>
[cmake] Don't fail if brotli is missing (#56894).

View File

@ -1975,6 +1975,13 @@
goto Exit;
FT_TRACE6(( "%hu ", table_index ));
if ( table_index >= woff2.num_tables )
{
FT_ERROR(( "woff2_open_font: invalid table index\n" ));
error = FT_THROW( Invalid_Table );
goto Exit;
}
ttc_font->table_indices[j] = table_index;
table = indices[table_index];