8269218: GaloisCounterMode.overlapDetection misses the JDK-8263436 fix again

Reviewed-by: ascarpino
This commit is contained in:
Aleksey Shipilev 2021-06-24 06:37:21 +00:00
parent d3d3b221d3
commit 3fb28d3074

View file

@ -894,7 +894,7 @@ abstract class GaloisCounterMode extends CipherSpi {
// if src is read only, then we need a copy // if src is read only, then we need a copy
if (!src.isReadOnly()) { if (!src.isReadOnly()) {
// If using the heap, check underlying byte[] address. // If using the heap, check underlying byte[] address.
if (!src.array().equals(dst.array()) ) { if (src.array() != dst.array()) {
return dst; return dst;
} }