Skip to content

Commit 2112d73

Browse files
committed
Autoformat
1 parent 1a108fb commit 2112d73

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

java/ql/src/experimental/Security/CWE/CWE-078/CommandInjectionRuntimeExec.qll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ class ExecTaintConfiguration2 extends TaintTracking::Configuration {
6464
class AssignToNonZeroIndex extends DataFlow::Node {
6565
AssignToNonZeroIndex() {
6666
exists(AssignExpr assign, ArrayAccess access |
67-
assign.getDest() = access and
68-
access.getIndexExpr().(IntegerLiteral).getValue() != "0" and
69-
assign.getSource() = this.asExpr()
67+
assign.getDest() = access and
68+
access.getIndexExpr().(IntegerLiteral).getValue() != "0" and
69+
assign.getSource() = this.asExpr()
7070
)
7171
}
7272
}
@@ -75,8 +75,8 @@ class AssignToNonZeroIndex extends DataFlow::Node {
7575
class ArrayInitAtNonZeroIndex extends DataFlow::Node {
7676
ArrayInitAtNonZeroIndex() {
7777
exists(ArrayInit init, int index |
78-
init.getInit(index) = this.asExpr() and
79-
index != 0
78+
init.getInit(index) = this.asExpr() and
79+
index != 0
8080
)
8181
}
8282
}
@@ -85,9 +85,9 @@ class ArrayInitAtNonZeroIndex extends DataFlow::Node {
8585
class StreamConcatAtNonZeroIndex extends DataFlow::Node {
8686
StreamConcatAtNonZeroIndex() {
8787
exists(MethodAccess call, int index |
88-
call.getMethod().getQualifiedName() = "java.util.stream.Stream.concat" and
89-
call.getArgument(index) = this.asExpr() and
90-
index != 0
88+
call.getMethod().getQualifiedName() = "java.util.stream.Stream.concat" and
89+
call.getArgument(index) = this.asExpr() and
90+
index != 0
9191
)
9292
}
9393
}

0 commit comments

Comments
 (0)