Java: Fix sink model generator for instance parameters

This commit is contained in:
Tony Torralba
2023-04-28 14:49:04 +02:00
parent edfe2d7ab7
commit 77ec181cac

View File

@@ -236,7 +236,7 @@ predicate apiSource(DataFlow::Node source) {
string asInputArgumentSpecific(DataFlow::Node source) {
exists(int pos |
source.(DataFlow::ParameterNode).isParameterOf(_, pos) and
result = "Argument[" + pos + "]"
if pos >= 0 then result = "Argument[" + pos + "]" else result = qualifierString()
)
or
source.asExpr() instanceof J::FieldAccess and