Skip to content

Commit

Permalink
Update BlobCacheBufferedIndexInput::readVLong to correctly handle neg…
Browse files Browse the repository at this point in the history
…ative long values (elastic#115594)
  • Loading branch information
ChrisHegarty committed Oct 29, 2024
1 parent aad4fc9 commit d3916a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/changelog/115594.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 115594
summary: Update `BlobCacheBufferedIndexInput::readVLong` to correctly handle negative
long values
area: Search
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public final int readVInt() throws IOException {

@Override
public final long readVLong() throws IOException {
if (9 <= buffer.remaining()) {
if (10 <= buffer.remaining()) {
return ByteBufferStreamInput.readVLong(buffer);
} else {
return super.readVLong();
Expand Down

0 comments on commit d3916a4

Please sign in to comment.