Reject non-zero loca transformLength
This commit is contained in:
@@ -720,6 +720,9 @@ bool ReadTableDirectory(Buffer* file, std::vector<Table>* tables,
|
||||
if (!ReadBase128(file, &transform_length)) {
|
||||
return FONT_COMPRESSION_FAILURE();
|
||||
}
|
||||
if (tag == kLocaTableTag && transform_length) {
|
||||
return FONT_COMPRESSION_FAILURE();
|
||||
}
|
||||
}
|
||||
table->tag = tag;
|
||||
table->flags = flags;
|
||||
|
||||
Reference in New Issue
Block a user