handle missing end bytes for cmap code

when the byte input does not contain a code of the full code length we return early.
This commit is contained in:
Eliot Jones
2020-02-27 15:26:48 +00:00
parent 25b6f1d46d
commit c033a0b3fe

View File

@@ -141,6 +141,11 @@
for (int i = 1; i < minCodeLength; i++)
{
if (bytes.IsAtEnd())
{
break;
}
result[i] = ReadByte(bytes);
}