Skip to content

Commit cd999f9

Browse files
moong1993ab111404212
authored andcommitted
fix byte array overflow
Signed-off-by: wuyj@shuyilink.com
1 parent dda1029 commit cd999f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/tikv/common/codec/RowV2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private int binarySearch(int i, int j, long colID) {
147147
if (this.large) {
148148
v = this.colIDs32[h];
149149
} else {
150-
v = this.colIDs[h];
150+
v = this.colIDs[h] & 0xFF;
151151
}
152152
if (v < colID) {
153153
i = h + 1;

0 commit comments

Comments
 (0)