Use getDeclaringType() for getIntent() method call

This commit is contained in:
luchua-bc
2020-10-29 12:55:03 +00:00
parent 2ee9a45e69
commit b1d6bc5ba9

View File

@@ -313,7 +313,7 @@ class AndroidIntentInput extends DataFlow::Node {
exists(MethodAccess ma, AndroidGetIntentMethod m |
ma.getMethod().overrides*(m) and
this.asExpr() = ma and
receiverType = ma.getEnclosingCallable().getDeclaringType()
receiverType = ma.getReceiverType()
)
or
exists(Method m, AndroidReceiveIntentMethod rI |