Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
srowen committed Aug 18, 2022
1 parent 7fe6d3c commit e21bcbb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ private static int textCompaction(int[] codewords, int codeIndex, ECIStringBuild
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;
Expand Down

0 comments on commit e21bcbb

Please sign in to comment.