Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Issue 474313002: Correct order for alignment in name iterator record. (Closed)

Created:
6 years, 4 months ago by bungeman-skia
Modified:
6 years, 4 months ago
Reviewers:
mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

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. Committed: https://skia.googlesource.com/skia/+/0a25b2ccf850ea41f3b083422f0420822832c540

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/sfnt/SkOTTable_name.h View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 6 (0 generated)
bungeman-skia
6 years, 4 months ago (2014-08-15 19:25:14 UTC) #1
bungeman-skia
The CQ bit was checked by bungeman@google.com
6 years, 4 months ago (2014-08-15 19:37:23 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/bungeman@google.com/474313002/1
6 years, 4 months ago (2014-08-15 19:37:51 UTC) #3
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 4 months ago (2014-08-15 19:37:52 UTC) #4
mtklein
lgtm https://codereview.chromium.org/474313002/diff/1/src/sfnt/SkOTTable_name.h File src/sfnt/SkOTTable_name.h (right): https://codereview.chromium.org/474313002/diff/1/src/sfnt/SkOTTable_name.h#newcode550 src/sfnt/SkOTTable_name.h:550: class Iterator { Follow up by moving the ...
6 years, 4 months ago (2014-08-15 19:45:06 UTC) #5
commit-bot: I haz the power
6 years, 4 months ago (2014-08-18 15:07:50 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (1) as 0a25b2ccf850ea41f3b083422f0420822832c540

Powered by Google App Engine
This is Rietveld 408576698