summaryrefslogtreecommitdiff
path: root/src/hb-ot-post-table.hh
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-06-02 15:30:59 -0700
committerBehdad Esfahbod <behdad@behdad.org>2018-06-02 15:46:08 -0700
commitf9abbf83b6404bc9eb0c0983f562c9dbba1ef57c (patch)
tree189b09abef59b145b6258cd08fe502b298980e1c /src/hb-ot-post-table.hh
parentf7515769fd024faca888a47c58f87fb868b0e760 (diff)
Ouch!
Diffstat (limited to 'src/hb-ot-post-table.hh')
-rw-r--r--src/hb-ot-post-table.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hb-ot-post-table.hh b/src/hb-ot-post-table.hh
index ab3c0535..5f42751d 100644
--- a/src/hb-ot-post-table.hh
+++ b/src/hb-ot-post-table.hh
@@ -109,12 +109,13 @@ struct post
{
inline void init (hb_face_t *face)
{
+ index_to_offset.init ();
+
blob = Sanitizer<post>().sanitize (face->reference_table (HB_OT_TAG_post));
const post *table = blob->as<post> ();
unsigned int table_length = blob->length;
version = table->version.to_int ();
- index_to_offset.init ();
if (version != 0x00020000)
return;