mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 01:11:25 +01:00
[cff] Add memory-barrier to INDEX
Like we do for ArrayOf.
This commit is contained in:
1 parent
6905d36d73
commit
5ee6d5d77e
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user