Correct order for alignment in name iterator record.

We must be quite careful about the order of fields in a 'pragma pack(1)'.
On Android the order 'uint16_t, void*' will misalign the pointer,
potentially leading to a crash.

In the future we should move anything which is not strictly part of the
table definition outside of the packed region.

R=mtklein@google.com

Author: bungeman@google.com

Review URL: https://codereview.chromium.org/474313002
This commit is contained in:
bungeman 2014-08-18 08:07:44 -07:00 committed by Commit bot
parent f92c86642a
commit 0a25b2ccf8

View File

@ -560,9 +560,9 @@ struct SkOTTableName {
}
struct Record {
SK_OT_USHORT type;
SkString name;
SkString language;
SK_OT_USHORT type;
};
bool next(Record&);