mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 09:09:13 +01:00
cff2 subset fuzzer issues (#1619)
* add check to FDArray::serialize * add test files * fix off by one
This commit is contained in:
1 parent
161e61fc3b
commit
9584b090bb
4 files changed
+1
No files matched your search
@@ -474,6 +474,7 @@ struct FDArray : CFFIndexOf<COUNT, FontDict>
|
||||
for (unsigned i = 0; i < fontDicts.length; i++)
|
||||
if (fdmap.has (i))
|
||||
{
|
||||
if (unlikely (fid >= fdCount)) return_trace (false);
|
||||
CFFIndexOf<COUNT, FontDict>::set_offset_at (fid++, offset);
|
||||
offset += FontDict::calculate_serialized_size (fontDicts[i], opszr);
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user