We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4543247 commit aaef4efCopy full SHA for aaef4ef
java/ql/src/experimental/Security/CWE/CWE-348/UseOfLessTrustedSourceLib.qll
@@ -56,7 +56,7 @@ private class CompareSink extends UseOfLessTrustedSink {
56
ma.getMethod().getDeclaringType() instanceof TypeString and
57
ma.getMethod().getNumberOfParameters() = 1 and
58
ma.getQualifier() = this.asExpr() and
59
- ma.getArgument(0).(CompileTimeConstantExpr).getStringValue().toLowerCase() in ["", "unknown"]
+ not ma.getArgument(0).(CompileTimeConstantExpr).getStringValue().toLowerCase() in ["", "unknown"]
60
)
61
or
62
exists(MethodAccess ma, int i |
0 commit comments