This commit is contained in:
Sean Owen 2022-08-18 12:16:15 -05:00
parent 7fe6d3c108
commit e21bcbb2f8

View file

@ -321,6 +321,9 @@ final class DecodedBitStreamParser {
case ECI_CHARSET:
subMode = decodeTextCompaction(textCompactionData, byteCompactionData, index, result, subMode);
result.appendECI(codewords[codeIndex++]);
if (codeIndex > codewords[0]) {
throw FormatException.getFormatInstance();
}
textCompactionData = new int[(codewords[0] - codeIndex) * 2];
byteCompactionData = new int[(codewords[0] - codeIndex) * 2];
index = 0;