mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
bug 653408 - [ots] fix GDEF sanitizer so it doesn't reject LinLibertine. r=jdaggett
This commit is contained in:
parent
c8eb8e834c
commit
97bd75bed5
@ -155,7 +155,7 @@ bool ParseLigCaretListTable(ots::OpenTypeFile *file, const uint8_t *data,
|
||||
std::vector<uint16_t> caret_values;
|
||||
caret_values.resize(caret_count);
|
||||
uint16_t last_offset_caret = 0;
|
||||
unsigned caret_values_end = static_cast<unsigned>(2) * 2*caret_count;
|
||||
unsigned caret_values_end = static_cast<unsigned>(2) + 2*caret_count;
|
||||
for (unsigned j = 0; j < caret_count; ++j) {
|
||||
if (!subtable.ReadU16(&caret_values[j])) {
|
||||
return OTS_FAILURE();
|
||||
|
Loading…
Reference in New Issue
Block a user