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 <smowton@github.com>
1 parent 4ebf0ed commit 676f0ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)