[ankr] Start fixing

This commit is contained in:
Behdad Esfahbod 2018-10-10 22:56:52 -04:00
parent 34caadc5c7
commit 7281cb3eeb
1 changed files with 4 additions and 5 deletions

View File

@ -60,17 +60,16 @@ struct ankr
TRACE_SANITIZE (this); TRACE_SANITIZE (this);
return_trace (likely (c->check_struct (this) && return_trace (likely (c->check_struct (this) &&
version == 0 && version == 0 &&
lookupTable.sanitize (c, this) && lookupTable.sanitize (c, this)));
anchors.sanitize (c, this)));
} }
protected: protected:
HBUINT16 version; /* Version number (set to zero) */ HBUINT16 version; /* Version number (set to zero) */
HBUINT16 flags; /* Flags (currently unused; set to zero) */ HBUINT16 flags; /* Flags (currently unused; set to zero) */
LOffsetTo<Lookup<HBUINT16> > LOffsetTo<Lookup<Offset<HBUINT16, false> > >
lookupTable; /* Offset to the table's lookup table */ lookupTable; /* Offset to the table's lookup table */
LOffsetTo<LArrayOf<Anchor> > LOffsetTo<HBUINT8>
anchors; /* Offset to the glyph data table */ anchorData; /* Offset to the glyph data table */
public: public:
DEFINE_SIZE_STATIC (12); DEFINE_SIZE_STATIC (12);