diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh index b1dcb01ce..52d213cd4 100644 --- a/src/hb-ot-layout-common-private.hh +++ b/src/hb-ot-layout-common-private.hh @@ -1336,7 +1336,8 @@ struct VariationDevice inline bool sanitize (hb_sanitize_context_t *c) const { TRACE_SANITIZE (this); - return_trace (c->check_struct (this) && c->check_range (&deltaValue, deltaCount * SHORT::static_size)); + return_trace (c->check_struct (this) && + c->check_array (&deltaValue, SHORT::static_size, deltaCount)); } private: