diff --git a/src/hb-aat-layout-kerx-table.hh b/src/hb-aat-layout-kerx-table.hh index b3c6a11de9e627324ac0bc00bcd2492926a07e35..2414ecbf499dd2b99929d5a5c127e7b3243b4d26 100644 --- a/src/hb-aat-layout-kerx-table.hh +++ b/src/hb-aat-layout-kerx-table.hh @@ -195,17 +195,21 @@ struct KerxSubTableFormat6 inline bool sanitize (hb_sanitize_context_t *c) const { TRACE_SANITIZE (this); - return_trace (c->check_struct (this)); + return_trace (c->check_struct (this) && + rowIndexTable.sanitize (c, this) && + columnIndexTable.sanitize (c, this) && + kerningArray.sanitize (c, this) && + kerningVector.sanitize (c, this)); } protected: HBUINT32 flags; HBUINT16 rowCount; HBUINT16 columnCount; - HBUINT32 rowIndexTableOffset; - HBUINT32 columnIndexTableOffset; - HBUINT32 kerningArrayOffset; - HBUINT32 kerningVectorOffset; + LOffsetTo > rowIndexTable; + LOffsetTo > columnIndexTable; + LOffsetTo > kerningArray; + LOffsetTo > kerningVector; public: DEFINE_SIZE_STATIC (24); };