Commit bf9b1ef90564987856a42461147435f143e9e7cd

Werner Lemberg 2022-01-07T10:25:52

* src/sfnt/ttload.c (check_table_dir): Initialize `table`. Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=42773

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/sfnt/ttload.c b/src/sfnt/ttload.c
index 51416d8..184e43e 100644
--- a/src/sfnt/ttload.c
+++ b/src/sfnt/ttload.c
@@ -200,7 +200,7 @@
 
     for ( nn = 0; nn < sfnt->num_tables; nn++ )
     {
-      TT_TableRec  table;
+      TT_TableRec  table = { 0, 0, 0, 0 };
 
 
       if ( FT_STREAM_READ_FIELDS( table_dir_entry_fields, &table ) )