diff --git a/src/hb-open-file-private.hh b/src/hb-open-file-private.hh index 4cbe93552..03d9e141c 100644 --- a/src/hb-open-file-private.hh +++ b/src/hb-open-file-private.hh @@ -176,6 +176,7 @@ struct OpenTypeFontFile bool sanitize (SANITIZE_ARG_DEF) { SANITIZE_DEBUG (); + if (!SANITIZE_SELF ()) return false; switch (tag) { default: return true; case TrueTypeTag: case CFFTag: return SANITIZE_THIS (CAST (OffsetTable, *this, 0));