Skip to content

Commit d2cd96e

Browse files
committed
Fix diff-informed predicates
1 parent 416baf6 commit d2cd96e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

go/ql/lib/semmle/go/frameworks/CryptoLibraries.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ private module HashConfig implements DataFlow::ConfigSig {
2121
predicate isSource(DataFlow::Node source) { source instanceof HashAlgorithmInit }
2222

2323
predicate isSink(DataFlow::Node sink) { any() }
24-
25-
predicate observeDiffInformedIncrementalMode() { any() }
2624
}
2725

2826
/** Tracks the flow of hash algorithms. */
@@ -50,8 +48,6 @@ private module EncryptionConfig implements DataFlow::ConfigSig {
5048
predicate isAdditionalFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
5149
any(BlockModeInit nbcm).step(node1, node2)
5250
}
53-
54-
predicate observeDiffInformedIncrementalMode() { any() }
5551
}
5652

5753
/**

go/ql/src/Security/CWE-327/WeakSensitiveDataHashing.ql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ module NormalHashFunctionFlow {
3939
// make sinks barriers so that we only report the closest instance
4040
isSink(node)
4141
}
42+
43+
predicate observeDiffInformedIncrementalMode() { any() }
4244
}
4345

4446
import TaintTracking::Global<Config>
@@ -70,6 +72,8 @@ module ComputationallyExpensiveHashFunctionFlow {
7072
// make sinks barriers so that we only report the closest instance
7173
isSink(node)
7274
}
75+
76+
predicate observeDiffInformedIncrementalMode() { any() }
7377
}
7478

7579
import TaintTracking::Global<Config>

0 commit comments

Comments
 (0)