Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2079,7 +2079,7 @@ protected byte[] _finishBytes(int len) throws IOException
// First, simple: non-chunked
if (len >= 0) {
byte[] b = new byte[len];
if (_inputPtr >= _inputEnd) {
if (_inputPtr > _inputEnd) {
loadMoreGuaranteed();
}
int ptr = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public Bytes() { }
private final ObjectMapper MAPPER = cborMapper();

public void testSmallBinaryValues() throws Exception {
_testBinary(0);
_testBinary(1);
_testBinary(20);
_testBinary(100);
Expand Down