File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
java/ql/src/semmle/code/java/dataflow Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -308,16 +308,18 @@ class ReverseDNSMethod extends Method {
308308/** Exported Android `Intent` that may have come from a hostile application. */
309309class AndroidIntentInput extends RemoteFlowSource {
310310 AndroidIntentInput ( ) {
311- this . getEnclosingCallable ( ) . getDeclaringType ( ) . ( AndroidComponent ) . isExported ( ) and
312- (
311+ exists ( AndroidComponent exportedType |
312+ exportedType . isExported ( ) |
313313 exists ( MethodAccess ma , AndroidGetIntentMethod m |
314314 ma .getMethod ( ) .overrides * ( m ) and
315- this .asExpr ( ) = ma
315+ this .asExpr ( ) = ma and
316+ exportedType = ma .getReceiverType ( )
316317 )
317318 or
318319 exists ( Method m , AndroidReceiveIntentMethod rI |
319320 m .overrides * ( rI ) and
320- this .asParameter ( ) = m .getParameter ( 1 )
321+ this .asParameter ( ) = m .getParameter ( 1 ) and
322+ exportedType = m .getDeclaringType ( )
321323 )
322324 )
323325 }
You can’t perform that action at this time.
0 commit comments