8263436: Silly array comparison in GaloisCounterMode.overlapDetection

Reviewed-by: ascarpino
This commit is contained in:
Aleksey Shipilev 2021-03-12 07:35:11 +00:00
parent ad1f605419
commit 9f6b1d7fa4

View file

@ -973,7 +973,7 @@ final class GaloisCounterMode extends FeedbackCipher {
} 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;
}