File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
java/ql/lib/semmle/code/java/security Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,14 @@ module ArithmeticOverflowConfig implements DataFlow::ConfigSig {
13
13
predicate isBarrier ( DataFlow:: Node n ) { overflowBarrier ( n ) }
14
14
15
15
predicate isBarrierIn ( DataFlow:: Node node ) { isSource ( node ) }
16
+
17
+ predicate observeDiffInformedIncrementalMode ( ) {
18
+ any ( ) // merged with ArithmeticUnderflow in ArithmeticTainted.ql
19
+ }
20
+
21
+ Location getASelectedSinkLocation ( DataFlow:: Node sink ) {
22
+ exists ( ArithExpr exp | result = exp .getLocation ( ) | overflowSink ( exp , sink .asExpr ( ) ) )
23
+ }
16
24
}
17
25
18
26
/**
@@ -29,6 +37,14 @@ module ArithmeticUnderflowConfig implements DataFlow::ConfigSig {
29
37
predicate isBarrier ( DataFlow:: Node n ) { underflowBarrier ( n ) }
30
38
31
39
predicate isBarrierIn ( DataFlow:: Node node ) { isSource ( node ) }
40
+
41
+ predicate observeDiffInformedIncrementalMode ( ) {
42
+ any ( ) // merged with ArithmeticOverflow in ArithmeticTainted.ql
43
+ }
44
+
45
+ Location getASelectedSinkLocation ( DataFlow:: Node sink ) {
46
+ exists ( ArithExpr exp | result = exp .getLocation ( ) | underflowSink ( exp , sink .asExpr ( ) ) )
47
+ }
32
48
}
33
49
34
50
/**
You can’t perform that action at this time.
0 commit comments