Sort tables when decoding
This commit is contained in:
@@ -43,6 +43,10 @@ struct Table {
|
||||
uint32_t dst_offset;
|
||||
uint32_t dst_length;
|
||||
const uint8_t* dst_data;
|
||||
|
||||
bool operator<(const Table& other) const {
|
||||
return tag < other.tag;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace woff2
|
||||
|
||||
Reference in New Issue
Block a user