Skip to content

Commit b151c14

Browse files
committed
Update BlobCacheBufferedIndexInput::readVLong to correctly handle negative long values (#115594)
1 parent 4782ee5 commit b151c14

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/changelog/115594.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 115594
2+
summary: Update `BlobCacheBufferedIndexInput::readVLong` to correctly handle negative
3+
long values
4+
area: Search
5+
type: bug
6+
issues: []

x-pack/plugin/blob-cache/src/main/java/org/elasticsearch/blobcache/common/BlobCacheBufferedIndexInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public final int readVInt() throws IOException {
175175

176176
@Override
177177
public final long readVLong() throws IOException {
178-
if (9 <= buffer.remaining()) {
178+
if (10 <= buffer.remaining()) {
179179
return ByteBufferStreamInput.readVLong(buffer);
180180
} else {
181181
return super.readVLong();

0 commit comments

Comments
 (0)