Skip to content
Permalink
Browse files
8263436: Silly array comparison in GaloisCounterMode.overlapDetection
Reviewed-by: ascarpino
  • Loading branch information
shipilev committed Mar 12, 2021
1 parent ad1f605 commit 9f6b1d7fa44f373f51447c36dff9106765c55ed7
Showing 1 changed file with 1 addition and 1 deletion.
@@ -973,7 +973,7 @@ ByteBuffer overlapDetection(ByteBuffer src, ByteBuffer dst) {
} else if (!src.isDirect() && !dst.isDirect()) {
if (!src.isReadOnly()) {
// If using the heap, check underlying byte[] address.
if (!src.array().equals(dst.array()) ) {
if (src.array() != dst.array()) {
return dst;
}

0 comments on commit 9f6b1d7

Please sign in to comment.