Fix woff2_compress fuzzer bugs

This commit is contained in:
Rod Sheeter
2017-10-13 13:12:55 -07:00
parent 550cfa6433
commit 677800fa54
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -123,6 +123,9 @@ bool ReadCollectionFont(Buffer* file, const uint8_t* data, size_t len,
(*all_tables)[table.offset] = font->FindTable(table.tag);
} else {
table.reuse_of = (*all_tables)[table.offset];
if (table.tag != table.reuse_of->tag) {
return FONT_COMPRESSION_FAILURE();
}
}
}