mirror of
https://github.com/github/codeql.git
synced 2026-06-02 20:30:15 +02:00
add defensive check to ensure Unknown endpoints cannot also be NotASink
This commit is contained in:
@@ -75,7 +75,11 @@ private DataFlow::Node getAnUnknown(Query query) {
|
||||
getATMCfg(query).isEffectiveSink(result) or
|
||||
getATMCfg(query).isEffectiveSinkWithOverridingScore(result, _, _)
|
||||
) and
|
||||
// Effective sinks should exclude sinks but this is a defensive requirement
|
||||
not result = getASink(query) and
|
||||
// Effective sinks should exclude NotASink but for some queries (e.g. Xss) this is currently not always the case and
|
||||
// so this is a defensive requirement
|
||||
not result = getANotASink(_) and
|
||||
// Only consider the source code for the project being analyzed.
|
||||
exists(result.getFile().getRelativePath())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user