...
Code Block | ||
---|---|---|
| ||
public void arrayReferencesEqual(int[] arr1, int[] arr2) {
arr1 == arr2;
}
|
Risk Assessment
Using the equals()
method or relational operators with the intention of comparing array contents produces incorrect results, which can lead to vulnerabilities.
...