Skip to content

Commit 1c3993e

Browse files
committed
QLDocs
1 parent 8e55ced commit 1c3993e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ private class GetPropertyMethodCall extends MethodCall {
5050
}
5151
}
5252

53+
/**
54+
* Get the string value represented by the given expression.
55+
*
56+
* If the value is a string literal, return the literal value.
57+
* If the value is a call to `java.util.Properties::getProperty`, return the potential values of the property.
58+
*/
5359
string insecureAlgorithmName(DataFlow::Node algo) {
5460
result = algo.asExpr().(StringLiteral).getValue()
5561
or

0 commit comments

Comments
 (0)