[subset] fix heap buffer overflow found by fuzzer.
This commit is contained in:
parent
ae860db893
commit
5ca353a2d0
|
@ -2064,6 +2064,9 @@ struct LigatureArray : OffsetListOf<LigatureAttach>
|
||||||
unsigned ligature_count = 0;
|
unsigned ligature_count = 0;
|
||||||
for (hb_codepoint_t gid : coverage)
|
for (hb_codepoint_t gid : coverage)
|
||||||
{
|
{
|
||||||
|
if (ligature_count >= this->len)
|
||||||
|
break;
|
||||||
|
|
||||||
ligature_count++;
|
ligature_count++;
|
||||||
if (!glyphset.has (gid)) continue;
|
if (!glyphset.has (gid)) continue;
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue