mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Fix diff-informed predicates
This commit is contained in:
committed by
Owen Mansel-Chan
parent
7d7af193dc
commit
adbc1efe59
@@ -21,8 +21,6 @@ private module HashConfig implements DataFlow::ConfigSig {
|
||||
predicate isSource(DataFlow::Node source) { source instanceof HashAlgorithmInit }
|
||||
|
||||
predicate isSink(DataFlow::Node sink) { any() }
|
||||
|
||||
predicate observeDiffInformedIncrementalMode() { any() }
|
||||
}
|
||||
|
||||
/** Tracks the flow of hash algorithms. */
|
||||
@@ -50,8 +48,6 @@ private module EncryptionConfig implements DataFlow::ConfigSig {
|
||||
predicate isAdditionalFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
|
||||
any(BlockModeInit nbcm).step(node1, node2)
|
||||
}
|
||||
|
||||
predicate observeDiffInformedIncrementalMode() { any() }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -39,6 +39,8 @@ module NormalHashFunctionFlow {
|
||||
// make sinks barriers so that we only report the closest instance
|
||||
isSink(node)
|
||||
}
|
||||
|
||||
predicate observeDiffInformedIncrementalMode() { any() }
|
||||
}
|
||||
|
||||
import TaintTracking::Global<Config>
|
||||
@@ -70,6 +72,8 @@ module ComputationallyExpensiveHashFunctionFlow {
|
||||
// make sinks barriers so that we only report the closest instance
|
||||
isSink(node)
|
||||
}
|
||||
|
||||
predicate observeDiffInformedIncrementalMode() { any() }
|
||||
}
|
||||
|
||||
import TaintTracking::Global<Config>
|
||||
|
||||
Reference in New Issue
Block a user