[cff-common] Add assert to INDEX::set_offset_at()

This commit is contained in:
Behdad Esfahbod 2022-05-09 15:35:04 -06:00
parent 4bcab9e99a
commit 2ccfe84eff
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ struct CFFIndex
void set_offset_at (unsigned int index, unsigned int offset)
{
assert (index <= count);
HBUINT8 *p = offsets + offSize * index + offSize;
unsigned int size = offSize;
for (; size; size--)