From 5ee6d5d77e373314e007d736f04b3686723d1cfd Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 21 Nov 2022 11:00:29 -0700 Subject: [PATCH] [cff] Add memory-barrier to INDEX Like we do for ArrayOf. --- src/hb-ot-cff-common.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-ot-cff-common.hh b/src/hb-ot-cff-common.hh index ae3b83a25..2d9af7865 100644 --- a/src/hb-ot-cff-common.hh +++ b/src/hb-ot-cff-common.hh @@ -229,6 +229,7 @@ struct CFFIndex hb_ubytes_t operator [] (unsigned int index) const { if (unlikely (index >= count)) return hb_ubytes_t (); + _hb_compiler_memory_r_barrier (); unsigned length = length_at (index); if (unlikely (!length)) return hb_ubytes_t (); return hb_ubytes_t (data_base () + offset_at (index) - 1, length);