mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Python: Example use of provenance for additional taint steps
This commit is contained in:
@@ -200,10 +200,11 @@ module Decoding {
|
||||
}
|
||||
|
||||
private class DecodingAdditionalTaintStep extends TaintTracking::AdditionalTaintStep {
|
||||
override predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) {
|
||||
override predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo, string model) {
|
||||
exists(Decoding decoding |
|
||||
nodeFrom = decoding.getAnInput() and
|
||||
nodeTo = decoding.getOutput()
|
||||
nodeTo = decoding.getOutput() and
|
||||
model = "Decoding-" + decoding.getFormat()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user