mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Java: Validate all accesspaths except for Field.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import java
|
||||
import semmle.code.java.dataflow.ExternalFlow
|
||||
import semmle.code.java.dataflow.internal.AccessPathSyntax
|
||||
import ModelValidation
|
||||
|
||||
private predicate getRelevantAccessPath(string path) {
|
||||
summaryModel(_, _, _, _, _, _, path, _, _, _) or
|
||||
summaryModel(_, _, _, _, _, _, _, path, _, _) or
|
||||
sinkModel(_, _, _, _, _, _, path, _, _) or
|
||||
sourceModel(_, _, _, _, _, _, path, _, _)
|
||||
}
|
||||
|
||||
private class AccessPathsExternal extends AccessPath::Range {
|
||||
AccessPathsExternal() { getRelevantAccessPath(this) }
|
||||
}
|
||||
Reference in New Issue
Block a user