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 with 1 addition and 1 deletion.
  1. +1 −1 src/java.base/share/classes/com/sun/crypto/provider/GaloisCounterMode.java
@@ -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;
}

1 comment on commit 9f6b1d7

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 9f6b1d7 Mar 12, 2021

Please sign in to comment.