[cff-common] Add assert to INDEX::set_offset_at()
This commit is contained in:
parent
4bcab9e99a
commit
2ccfe84eff
|
@ -223,6 +223,7 @@ struct CFFIndex
|
||||||
|
|
||||||
void set_offset_at (unsigned int index, unsigned int offset)
|
void set_offset_at (unsigned int index, unsigned int offset)
|
||||||
{
|
{
|
||||||
|
assert (index <= count);
|
||||||
HBUINT8 *p = offsets + offSize * index + offSize;
|
HBUINT8 *p = offsets + offSize * index + offSize;
|
||||||
unsigned int size = offSize;
|
unsigned int size = offSize;
|
||||||
for (; size; size--)
|
for (; size; size--)
|
||||||
|
|
Loading…
Reference in New Issue