bug 653408 - [ots] fix GDEF sanitizer so it doesn't reject LinLibertine. r=jdaggett

This commit is contained in:
Jonathan Kew 2011-05-02 10:01:54 +01:00
parent c8eb8e834c
commit 97bd75bed5

View File

@ -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();