File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
cbor/src/main/java/com/fasterxml/jackson/dataformat/cbor Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2162,9 +2162,9 @@ protected String _finishTextToken(int ch) throws IOException
2162
2162
// 19-Mar-2021, tatu: [dataformats-binary#259] shows the case where length
2163
2163
// we get is Integer.MAX_VALUE, leading to overflow. Could change values
2164
2164
// to longs but simpler to truncate "needed" (will never pass following test
2165
- // due to inputBuffer never being even close to that big)
2165
+ // due to inputBuffer never being even close to that big).
2166
2166
2167
- final int needed = Math .max (len + 3 , Integer . MAX_VALUE );
2167
+ final int needed = Math .max (len + 3 , len );
2168
2168
final int available = _inputEnd - _inputPtr ;
2169
2169
2170
2170
if ((available >= needed )
You can’t perform that action at this time.
0 commit comments