mirror of
https://github.com/hohn/codeql-workshop-dataflow-c.git
synced 2025-12-17 02:43:05 +01:00
Add stateful data-flow (flow state) content
This commit is contained in:
@@ -81,7 +81,9 @@ module InputToAccessConfig implements DataFlow::ConfigSig {
|
||||
}
|
||||
|
||||
predicate isSink(DataFlow::Node sink) {
|
||||
exists(DynamicInputAccess access | sink.asExpr() = access.getArrayBase())
|
||||
exists(DynamicInputAccess access | sink.asExpr() = access.getArrayBase() and
|
||||
not typeValidationGuard(_, _, _, access.getBasicBlock())
|
||||
)
|
||||
}
|
||||
|
||||
predicate isBarrier(DataFlow::Node node) {
|
||||
|
||||
Reference in New Issue
Block a user