File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
java/ql/lib/semmle/code/java/security Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,18 @@ private module PredictableSeedFlowConfig implements DataFlow::ConfigSig {
3737 predicate isAdditionalFlowStep ( DataFlow:: Node node1 , DataFlow:: Node node2 ) {
3838 predictableCalcStep ( node1 .asExpr ( ) , node2 .asExpr ( ) )
3939 }
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+ }
4052}
4153
4254private module PredictableSeedFlow = DataFlow:: Global< PredictableSeedFlowConfig > ;
You can’t perform that action at this time.
0 commit comments