Skip to content

Commit 978c5f7

Browse files
committed
Java/C++: Autoformat
1 parent d0b7ffd commit 978c5f7

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

cpp/ql/src/Likely Bugs/Leap Year/UncheckedLeapYearAfterYearModification.ql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,14 @@ where
3131
// If there is a data flow from the variable that was modified to a function that seems to check for leap year
3232
exists(VariableAccess source, ChecksForLeapYearFunctionCall fc |
3333
source = var.getAnAccess() and
34-
LeapYearCheckFlow::flow(DataFlow::exprNode(source),
35-
DataFlow::exprNode(fc.getAnArgument()))
34+
LeapYearCheckFlow::flow(DataFlow::exprNode(source), DataFlow::exprNode(fc.getAnArgument()))
3635
)
3736
or
3837
// If there is a data flow from the field that was modified to a function that seems to check for leap year
3938
exists(VariableAccess vacheck, YearFieldAccess yfacheck, ChecksForLeapYearFunctionCall fc |
4039
vacheck = var.getAnAccess() and
4140
yfacheck.getQualifier() = vacheck and
42-
LeapYearCheckFlow::flow(DataFlow::exprNode(yfacheck),
43-
DataFlow::exprNode(fc.getAnArgument()))
41+
LeapYearCheckFlow::flow(DataFlow::exprNode(yfacheck), DataFlow::exprNode(fc.getAnArgument()))
4442
)
4543
or
4644
// If there is a successor or predecessor that sets the month = 1

cpp/ql/src/experimental/Security/CWE/CWE-193/ConstantSizeArrayOffByOne.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ module FieldAddressToPointerArithmeticConfig implements DataFlow::ConfigSig {
4343
}
4444
}
4545

46-
module FieldAddressToPointerArithmeticFlow = DataFlow::Global<FieldAddressToPointerArithmeticConfig>;
46+
module FieldAddressToPointerArithmeticFlow =
47+
DataFlow::Global<FieldAddressToPointerArithmeticConfig>;
4748

4849
predicate isFieldAddressSource(Field f, DataFlow::Node source) {
4950
source.asInstruction().(FieldAddressInstruction).getField() = f

java/ql/lib/semmle/code/java/security/ArbitraryApkInstallationQuery.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ private module InstallPackageActionConfig implements DataFlow::StateConfigSig {
7272
predicate isBarrier(DataFlow::Node node, FlowState state) { none() }
7373
}
7474

75-
private module InstallPackageActionFlow = TaintTracking::GlobalWithState<InstallPackageActionConfig>;
75+
private module InstallPackageActionFlow =
76+
TaintTracking::GlobalWithState<InstallPackageActionConfig>;
7677

7778
private newtype MimeTypeState =
7879
MimeTypeUnset() or

java/ql/src/Security/CWE/CWE-209/StackTraceExposure.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ predicate printsStackExternally(MethodAccess call, Expr stackTrace) {
104104
predicate stringifiedStackFlowsExternally(DataFlow::Node externalExpr, Expr stackTrace) {
105105
exists(MethodAccess stackTraceString |
106106
stackTraceExpr(stackTrace, stackTraceString) and
107-
StackTraceStringToHttpResponseSinkFlow::flow(DataFlow::exprNode(stackTraceString),
108-
externalExpr)
107+
StackTraceStringToHttpResponseSinkFlow::flow(DataFlow::exprNode(stackTraceString), externalExpr)
109108
)
110109
}
111110

java/ql/src/Security/CWE/CWE-807/TaintedPermissionsCheck.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ import TaintedPermissionsCheckFlow::PathGraph
6767
from
6868
TaintedPermissionsCheckFlow::PathNode source, TaintedPermissionsCheckFlow::PathNode sink,
6969
PermissionsConstruction p
70-
where
71-
sink.getNode().asExpr() = p.getInput() and TaintedPermissionsCheckFlow::flowPath(source, sink)
70+
where sink.getNode().asExpr() = p.getInput() and TaintedPermissionsCheckFlow::flowPath(source, sink)
7271
select p, source, sink, "Permissions check depends on a $@.", source.getNode(),
7372
"user-controlled value"

0 commit comments

Comments
 (0)