Skip to content

Commit ce13668

Browse files
committed
Fixed formatting
1 parent e904520 commit ce13668

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private class PrefixSuffixBarrier extends SensitiveLoggerBarrier {
5454
exists(MethodCall mc, Method m, int limit |
5555
limit = 7 and
5656
mc.getMethod() = m
57-
|
57+
|
5858
// substring in Java
5959
(
6060
m.hasQualifiedName("java.lang", "String", "substring") or
@@ -89,7 +89,8 @@ private predicate singleArgLimit(MethodCall mc, int limit, boolean isKotlin) {
8989
mc.getNumArgument() = 1 and
9090
exists(int firstArgIndex |
9191
(if isKotlin = true then firstArgIndex = 1 else firstArgIndex = 0) and
92-
mc.getArgument(firstArgIndex).getUnderlyingExpr().(CompileTimeConstantExpr).getIntValue() <= limit
92+
mc.getArgument(firstArgIndex).getUnderlyingExpr().(CompileTimeConstantExpr).getIntValue() <=
93+
limit
9394
)
9495
}
9596

@@ -104,7 +105,8 @@ private predicate twoArgLimit(MethodCall mc, int limit, boolean isKotlin) {
104105
isKotlin = false and firstArgIndex = 0 and secondArgIndex = 1
105106
) and
106107
mc.getArgument(firstArgIndex).getUnderlyingExpr().(CompileTimeConstantExpr).getIntValue() = 0 and
107-
mc.getArgument(secondArgIndex).getUnderlyingExpr().(CompileTimeConstantExpr).getIntValue() <= limit
108+
mc.getArgument(secondArgIndex).getUnderlyingExpr().(CompileTimeConstantExpr).getIntValue() <=
109+
limit
108110
)
109111
}
110112

0 commit comments

Comments
 (0)