mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Add sinks as barriers to prevent duplicate results.
This commit is contained in:
@@ -39,6 +39,11 @@ module HardcodedCryptographicValueConfig implements DataFlow::ConfigSig {
|
|||||||
// case like `[0, 0, 0, 0]`)
|
// case like `[0, 0, 0, 0]`)
|
||||||
isSource(node)
|
isSource(node)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
predicate isBarrierOut(DataFlow::Node node) {
|
||||||
|
// make sinks barriers so that we only report the closest instance
|
||||||
|
isSink(node)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module HardcodedCryptographicValueFlow = TaintTracking::Global<HardcodedCryptographicValueConfig>;
|
module HardcodedCryptographicValueFlow = TaintTracking::Global<HardcodedCryptographicValueConfig>;
|
||||||
|
|||||||
Reference in New Issue
Block a user