Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a928a0d commit 011d667Copy full SHA for 011d667
1 file changed
java/ql/lib/semmle/code/java/security/RandomQuery.qll
@@ -37,6 +37,18 @@ private module PredictableSeedFlowConfig implements DataFlow::ConfigSig {
37
predicate isAdditionalFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
38
predictableCalcStep(node1.asExpr(), node2.asExpr())
39
}
40
+
41
+ predicate observeDiffInformedIncrementalMode() { any() }
42
43
+ Location getASelectedSinkLocation(DataFlow::Node sink) {
44
+ // This predicate matches `PredictableSeed.ql`, which is the only place
45
+ // where `PredictableSeedFlowConfig` is used.
46
+ exists(GetRandomData da, VarRead use |
47
+ result = da.getLocation() and
48
+ da.getQualifier() = use and
49
+ isSeeding(sink.asExpr(), use)
50
+ )
51
+ }
52
53
54
private module PredictableSeedFlow = DataFlow::Global<PredictableSeedFlowConfig>;
0 commit comments