Skip to content

Commit b1073dd

Browse files
committed
Java/TaintedPermissionsCheckQuery
java/ql/src/Security/CWE/CWE-807/TaintedPermissionsCheck.ql
1 parent 1edc6b7 commit b1073dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

java/ql/lib/semmle/code/java/security/TaintedPermissionsCheckQuery.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ module TaintedPermissionsCheckFlowConfig implements DataFlow::ConfigSig {
6363
predicate observeDiffInformedIncrementalMode() { any() }
6464

6565
Location getASelectedSinkLocation(DataFlow::Node sink) {
66-
exists(PermissionsConstruction p |
67-
sink.asExpr() = p.getInput() and
66+
exists(PermissionsConstruction p | sink.asExpr() = p.getInput() |
67+
result = sink.getLocation()
68+
or
6869
result = p.getLocation()
6970
)
7071
}

0 commit comments

Comments
 (0)