We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c9fd454 + 0a8bc19 commit dc1b0e5Copy full SHA for dc1b0e5
msgpack-core/src/main/java/org/msgpack/core/MessagePacker.java
@@ -555,7 +555,7 @@ else if (s.length() < (1 << 16)) {
555
position += written;
556
}
557
else {
558
- if (written >= (1 << 32)) {
+ if (written >= (1L << 32)) { // this check does nothing because (1L << 32) is larger than Integer.MAX_VALUE
559
// this must not happen because s.length() is less than 2^16 and (2^16) * UTF_8_MAX_CHAR_SIZE is less than 2^32
560
throw new IllegalArgumentException("Unexpected UTF-8 encoder state");
561
0 commit comments