8000 Apply suggestions from code review · github/codeql@f72e7e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit f72e7e0

Browse files
Apply suggestions from code review
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
1 parent 2312fe5 commit f72e7e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ private class SafeSetEndpointIdentificationAlgorithm extends MethodAccess {
6060
this.getMethod().hasName("setEndpointIdentificationAlgorithm") and
6161
this.getMethod().getDeclaringType() instanceof SSLParameters and
6262
not this.getArgument(0) instanceof NullLiteral and
63-
not this.getArgument(0).(CompileTimeConstantExpr).getStringValue().length() = 0
63+
not this.getArgument(0).(CompileTimeConstantExpr).getStringValue() = ""
6464
}
6565
}

java/ql/src/Security/CWE/CWE-273/UnsafeCertTrust.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ where
2020
exists(SslEndpointIdentificationFlowConfig config |
2121
config.hasFlowTo(DataFlow::exprNode(unsafeTrust))
2222
)
23-
select unsafeTrust, "Unsafe configuration of trusted certificates"
23+
select unsafeTrust, "Unsafe configuration of trusted certificates."

0 commit comments

Comments
 (0)
0