File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
java/ql/lib/semmle/code/java/security Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ import semmle.code.java.Expr
2
2
import semmle.code.java.dataflow.SSA
3
3
import semmle.code.java.controlflow.Guards
4
4
5
- bindingset [ result , i]
6
- private int unbindInt ( int i ) { i <= result and i >= result }
7
-
8
5
/** Holds if the method `method` validates its `arg`-th argument in some way. */
9
6
predicate validationMethod ( Method method , int arg ) {
10
7
// The method examines the contents of the string argument.
@@ -22,8 +19,8 @@ predicate validationMethod(Method method, int arg) {
22
19
// The method calls another one that verifies the argument.
23
20
exists ( Parameter param , MethodAccess call , int recursiveArg |
24
21
method .getParameter ( arg ) = param and
25
- call .getArgument ( recursiveArg ) = param .getAnAccess ( ) and
26
- validationMethod ( call .getMethod ( ) , unbindInt ( recursiveArg ) )
22
+ call .getArgument ( pragma [ only_bind_into ] ( recursiveArg ) ) = param .getAnAccess ( ) and
23
+ validationMethod ( pragma [ only_bind_into ] ( call .getMethod ( ) ) , pragma [ only_bind_into ] ( recursiveArg ) )
27
24
)
28
25
}
29
26
You can’t perform that action at this time.
0 commit comments