Java: Improve the precision of java/hardcoded-credential-api-call.

This commit is contained in:
Anders Schack-Mulligen
2019-08-02 16:50:58 +02:00
parent 34cdf7c96b
commit b1b1ede6b0

View File

@@ -31,6 +31,10 @@ class HardcodedCredentialApiCallConfiguration extends DataFlow::Configuration {
ma.getQualifier() = node1.asExpr()
)
}
override predicate isBarrier(DataFlow::Node n) {
n.asExpr().(MethodAccess).getMethod() instanceof MethodSystemGetenv
}
}
from