In some build environments this results in off-by-one
This commit is contained in:
+1
-1
@@ -306,7 +306,7 @@ bool ConvertTTFToWOFF2(const uint8_t *data, size_t length,
|
|||||||
const Font::Table& src_table = font.tables.at(tag);
|
const Font::Table& src_table = font.tables.at(tag);
|
||||||
|
|
||||||
if (index_by_offset.find(src_table.offset) == index_by_offset.end()) {
|
if (index_by_offset.find(src_table.offset) == index_by_offset.end()) {
|
||||||
index_by_offset[src_table.offset] = index_by_offset.size();
|
index_by_offset[src_table.offset] = tables.size();
|
||||||
} else if (!src_table.IsReused()) {
|
} else if (!src_table.IsReused()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user