mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-21 04:17:57 +08:00
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:
@@ -141,6 +141,11 @@
|
|||||||
|
|
||||||
for (int i = 1; i < minCodeLength; i++)
|
for (int i = 1; i < minCodeLength; i++)
|
||||||
{
|
{
|
||||||
|
if (bytes.IsAtEnd())
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
result[i] = ReadByte(bytes);
|
result[i] = ReadByte(bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user