[varc] Fix sanitize for HBUINT32VAR

pull/4578/head
Behdad Esfahbod 12 months ago
parent a94a5c6366
commit 7cf84272f0
  1. 4
      src/hb-open-type.hh

@ -167,7 +167,9 @@ struct HBUINT32VAR
bool sanitize (hb_sanitize_context_t *c) const
{
TRACE_SANITIZE (this);
return_trace (c->check_range (v, 1) && c->check_struct (this));
return_trace (c->check_range (v, 1) &&
hb_barrier () &&
c->check_range (v, get_size ()));
}
operator unsigned () const

Loading…
Cancel
Save