mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Update java/ql/src/Security/CWE/CWE-327/MaybeBrokenCryptoAlgorithm.ql
This commit is contained in:
@@ -21,8 +21,8 @@ import InsecureCryptoFlow::PathGraph
|
||||
/**
|
||||
* Get the string value represented by the given expression.
|
||||
*
|
||||
* If the value is a string literal, return the literal value.
|
||||
* If the value is a call to `java.util.Properties::getProperty`, return the potential values of the property.
|
||||
* If the value is a string literal, get the literal value.
|
||||
* If the value is a call to `java.util.Properties::getProperty`, get the potential values of the property.
|
||||
*/
|
||||
string getStringValue(DataFlow::Node algo) {
|
||||
result = algo.asExpr().(StringLiteral).getValue()
|
||||
|
||||
Reference in New Issue
Block a user