From 25dee6097741e9594d545ff764623c30289e5c58 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 28 Jul 2021 13:58:24 -0600 Subject: [PATCH] [sanitize] Revert some from c68a00b92eb62fdc79f9a2bd1fc7a6acc24a3602 That overflow check was already happening in arrayZ.sanitize(). --- src/hb-ot-layout-common.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index 0b7878c77..333a8c069 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -2516,9 +2516,7 @@ struct VarRegionList bool sanitize (hb_sanitize_context_t *c) const { TRACE_SANITIZE (this); - return_trace (c->check_struct (this) && - !hb_unsigned_mul_overflows (axisCount * regionCount, VarRegionAxis::static_size) && - axesZ.sanitize (c, axisCount * regionCount)); + return_trace (c->check_struct (this) && axesZ.sanitize (c, axisCount * regionCount)); } bool serialize (hb_serialize_context_t *c, const VarRegionList *src, const hb_bimap_t ®ion_map)