mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -08:00
Possible fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50397
This commit is contained in:
parent
7fe6d3c108
commit
e21bcbb2f8
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue