mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8263436: Silly array comparison in GaloisCounterMode.overlapDetection
Reviewed-by: ascarpino
This commit is contained in:
parent
ad1f605419
commit
9f6b1d7fa4
1 changed files with 1 additions and 1 deletions
|
@ -973,7 +973,7 @@ final class GaloisCounterMode extends FeedbackCipher {
|
||||||
} else if (!src.isDirect() && !dst.isDirect()) {
|
} else if (!src.isDirect() && !dst.isDirect()) {
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue