Skip to content

Commit b1d6bc5

Browse files
committed
Use getDeclaringType() for getIntent() method call
1 parent 2ee9a45 commit b1d6bc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/semmle/code/java/dataflow/FlowSources.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ class AndroidIntentInput extends DataFlow::Node {
313313
exists(MethodAccess ma, AndroidGetIntentMethod m |
314314
ma.getMethod().overrides*(m) and
315315
this.asExpr() = ma and
316-
receiverType = ma.getEnclosingCallable().getDeclaringType()
316+
receiverType = ma.getReceiverType()
317317
)
318318
or
319319
exists(Method m, AndroidReceiveIntentMethod rI |

0 commit comments

Comments
 (0)