From cd999f977b0e48e6311d0febb054be1c8b03cc96 Mon Sep 17 00:00:00 2001 From: ab111404212 <18217007736@163.com> Date: Wed, 8 Feb 2023 17:47:01 +0800 Subject: [PATCH] fix byte array overflow Signed-off-by: wuyj@shuyilink.com --- src/main/java/org/tikv/common/codec/RowV2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/tikv/common/codec/RowV2.java b/src/main/java/org/tikv/common/codec/RowV2.java index 44891e4e917..6893894a7bd 100644 --- a/src/main/java/org/tikv/common/codec/RowV2.java +++ b/src/main/java/org/tikv/common/codec/RowV2.java @@ -147,7 +147,7 @@ private int binarySearch(int i, int j, long colID) { if (this.large) { v = this.colIDs32[h]; } else { - v = this.colIDs[h]; + v = this.colIDs[h] & 0xFF; } if (v < colID) { i = h + 1;