Index: src/sfnt/SkOTTable_name.cpp |
=================================================================== |
--- src/sfnt/SkOTTable_name.cpp (revision 10422) |
+++ src/sfnt/SkOTTable_name.cpp (working copy) |
@@ -495,7 +495,7 @@ |
const SkOTTableName::Format1Ext* format1ext = |
SkTAfter<const SkOTTableName::Format1Ext>(nameRecords, nameRecordsCount); |
- if (languageTagRecordIndex < format1ext->langTagCount) { |
+ if (languageTagRecordIndex < SkEndian_SwapBE16(format1ext->langTagCount)) { |
const SkOTTableName::Format1Ext::LangTagRecord* languageTagRecord = |
SkTAfter<const SkOTTableName::Format1Ext::LangTagRecord>(format1ext); |