mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Python: Allow provenance in additional taint steps
This commit is contained in:
@@ -29,6 +29,8 @@ private module Cached {
|
||||
or
|
||||
any(AdditionalTaintStep a).step(nodeFrom, nodeTo) and
|
||||
model = "AdditionalTaintStep"
|
||||
or
|
||||
any(AdditionalTaintStep a).step(nodeFrom, nodeTo, model)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -48,5 +48,7 @@ class AdditionalTaintStep extends Unit {
|
||||
* Holds if the step from `nodeFrom` to `nodeTo` should be considered a taint
|
||||
* step for all configurations.
|
||||
*/
|
||||
abstract predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo);
|
||||
predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) { none() }
|
||||
|
||||
predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo, string model) { none() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user