Skip to content

Commit bd3bb53

Browse files
more
1 parent 3ccfec5 commit bd3bb53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/software/amazon/awssdk/crt/checksums/XXHash.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void update(byte[] input, int offset, int length) {
129129
if (input == null) {
130130
throw new NullPointerException();
131131
}
132-
if (offset < 0 || length < 0 || off > b.length - length) {
132+
if (offset < 0 || length < 0 || offset > b.length - length) {
133133
throw new ArrayIndexOutOfBoundsException();
134134
}
135135
xxHashUpdate(getNativeHandle(), input, offset, length);

src/native/xxhash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void JNICALL Java_software_amazon_awssdk_crt_checksums_XXHash_xxHashUpdate(
189189
JNIEnv *env,
190190
jclass jni_class,
191191
jlong hash_ptr,
192-
jbyteArray input,
192+
jbyteArray input,
193193
jint offset,
194194
jint length) {
195195

0 commit comments

Comments
 (0)