From 12fffce10eb6ffebdedd655d0b1f10a99adf1808 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 15 Jan 2018 15:41:51 -0500 Subject: [PATCH] [aat] Sanitize classTable in StateTable --- src/hb-aat-layout-common-private.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb-aat-layout-common-private.hh b/src/hb-aat-layout-common-private.hh index a67ee5283..f912ed020 100644 --- a/src/hb-aat-layout-common-private.hh +++ b/src/hb-aat-layout-common-private.hh @@ -550,7 +550,8 @@ struct StateTable unsigned int *num_entries_out = nullptr) const { TRACE_SANITIZE (this); - if (unlikely (!c->check_struct (this))) return_trace (false); + if (unlikely (!(c->check_struct (this) && + classTable.sanitize (c, this)))) return_trace (false); const HBUINT16 *states = (this+stateArrayTable).arrayZ; const Entry *entries = (this+entryTable).arrayZ;