We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ebf0ed commit 676f0adCopy full SHA for 676f0ad
java/ql/src/experimental/Security/CWE/CWE-470/UnsafeReflection.ql
@@ -27,7 +27,7 @@ class EqualsSanitizer extends DataFlow::BarrierGuard {
27
EqualsSanitizer() { this.(MethodAccess).getMethod().hasName("equals") }
28
29
override predicate checks(Expr e, boolean branch) {
30
- (e = this.(MethodAccess).getArgument(0) or e = this.(MethodAccess).getQualifier()) and
+ e = [this.(MethodAccess).getArgument(0), this.(MethodAccess).getQualifier()] and
31
branch = true
32
}
33
0 commit comments