mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +01:00
[subset] fix heap buffer overflow found by fuzzer.
This commit is contained in:
1 parent
ae860db893
commit
5ca353a2d0
3 files changed
+3
No files matched your search
@@ -2064,6 +2064,9 @@ struct LigatureArray : OffsetListOf<LigatureAttach>
|
||||
unsigned ligature_count = 0;
|
||||
for (hb_codepoint_t gid : coverage)
|
||||
{
|
||||
if (ligature_count >= this->len)
|
||||
break;
|
||||
|
||||
ligature_count++;
|
||||
if (!glyphset.has (gid)) continue;
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user