Skip to content

Commit 676f0ad

Browse files
haby0smowton
andcommitted
Update java/ql/src/experimental/Security/CWE/CWE-470/UnsafeReflection.ql
Co-authored-by: Chris Smowton <[email protected]>
1 parent 4ebf0ed commit 676f0ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/experimental/Security/CWE/CWE-470/UnsafeReflection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class EqualsSanitizer extends DataFlow::BarrierGuard {
2727
EqualsSanitizer() { this.(MethodAccess).getMethod().hasName("equals") }
2828

2929
override predicate checks(Expr e, boolean branch) {
30-
(e = this.(MethodAccess).getArgument(0) or e = this.(MethodAccess).getQualifier()) and
30+
e = [this.(MethodAccess).getArgument(0), this.(MethodAccess).getQualifier()] and
3131
branch = true
3232
}
3333
}

0 commit comments

Comments
 (0)