mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +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++)
|
||||
{
|
||||
if (bytes.IsAtEnd())
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
result[i] = ReadByte(bytes);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user