Skip to content

Commit

Permalink
bug 968026 - cherrypick and rebase upstream commit a9a5f453467d1494eb…
Browse files Browse the repository at this point in the history
…f9f31cba99c2c49b37fd52 to fix potential OTS crash. r=fredw
  • Loading branch information
jfkthame committed Feb 5, 2014
1 parent ba7766a commit 34d04cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gfx/ots/src/ots.cc
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ bool ProcessGeneric(ots::OpenTypeFile *header, uint32_t signature,
const std::map<uint32_t, OpenTypeTable>::const_iterator it
= table_map.find(Tag(table_parsers[i].tag));

ots::TableAction action = GetTableAction(it->first);
ots::TableAction action = GetTableAction(Tag(table_parsers[i].tag));
if (it == table_map.end()) {
if (table_parsers[i].required && action == ots::TABLE_ACTION_SANITIZE) {
return OTS_FAILURE_MSG_TAG("missing required table", table_parsers[i].tag);
Expand Down

0 comments on commit 34d04cc

Please sign in to comment.