mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +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 isSource(DataFlow::Node source) { source instanceof HashAlgorithmInit }
|
||||||
|
|
||||||
predicate isSink(DataFlow::Node sink) { any() }
|
predicate isSink(DataFlow::Node sink) { any() }
|
||||||
|
|
||||||
predicate observeDiffInformedIncrementalMode() { any() }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Tracks the flow of hash algorithms. */
|
/** Tracks the flow of hash algorithms. */
|
||||||
@@ -50,8 +48,6 @@ private module EncryptionConfig implements DataFlow::ConfigSig {
|
|||||||
predicate isAdditionalFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
|
predicate isAdditionalFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
|
||||||
any(BlockModeInit nbcm).step(node1, 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
|
// make sinks barriers so that we only report the closest instance
|
||||||
isSink(node)
|
isSink(node)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
predicate observeDiffInformedIncrementalMode() { any() }
|
||||||
}
|
}
|
||||||
|
|
||||||
import TaintTracking::Global<Config>
|
import TaintTracking::Global<Config>
|
||||||
@@ -70,6 +72,8 @@ module ComputationallyExpensiveHashFunctionFlow {
|
|||||||
// make sinks barriers so that we only report the closest instance
|
// make sinks barriers so that we only report the closest instance
|
||||||
isSink(node)
|
isSink(node)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
predicate observeDiffInformedIncrementalMode() { any() }
|
||||||
}
|
}
|
||||||
|
|
||||||
import TaintTracking::Global<Config>
|
import TaintTracking::Global<Config>
|
||||||
|
|||||||
Reference in New Issue
Block a user