mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
r2235 for C++
git-svn-id: https://zxing.googlecode.com/svn/trunk@2243 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
6e492e54de
commit
b1dfc23418
|
@ -285,6 +285,9 @@ void DecodedBitStreamParser::decodeAlphanumericSegment(Ref<BitSource> bits_,
|
||||||
}
|
}
|
||||||
if (count == 1) {
|
if (count == 1) {
|
||||||
// special case: one character left
|
// special case: one character left
|
||||||
|
if (bits.available() < 6) {
|
||||||
|
throw FormatException();
|
||||||
|
}
|
||||||
bytes << toAlphaNumericChar(bits.readBits(6));
|
bytes << toAlphaNumericChar(bits.readBits(6));
|
||||||
}
|
}
|
||||||
// See section 6.4.8.1, 6.4.8.2
|
// See section 6.4.8.1, 6.4.8.2
|
||||||
|
|
Loading…
Reference in a new issue