diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 76ce55a76..3926694b0 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -277,20 +277,28 @@ struct OffsetTo : Offset (StructAtOffset (base, *this).sanitize (c) || neuter (c))); } - template - inline bool sanitize (hb_sanitize_context_t *c, const void *base, T user_data) const + template + inline bool sanitize (hb_sanitize_context_t *c, const void *base, T1 d1) const { TRACE_SANITIZE (this); return_trace (sanitize_shallow (c, base) && - (StructAtOffset (base, *this).sanitize (c, user_data) || + (StructAtOffset (base, *this).sanitize (c, d1) || neuter (c))); } template - inline bool sanitize (hb_sanitize_context_t *c, const void *base, T1 user_data1, T2 user_data2) const + inline bool sanitize (hb_sanitize_context_t *c, const void *base, T1 d1, T2 d2) const { TRACE_SANITIZE (this); return_trace (sanitize_shallow (c, base) && - (StructAtOffset (base, *this).sanitize (c, user_data1, user_data2) || + (StructAtOffset (base, *this).sanitize (c, d1, d2) || + neuter (c))); + } + template + inline bool sanitize (hb_sanitize_context_t *c, const void *base, T1 d1, T2 d2, T3 d3) const + { + TRACE_SANITIZE (this); + return_trace (sanitize_shallow (c, base) && + (StructAtOffset (base, *this).sanitize (c, d1, d2, d3) || neuter (c))); }