mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
QLDoc
This commit is contained in:
@@ -7,11 +7,13 @@ private import semmle.code.java.frameworks.android.PendingIntent
|
||||
|
||||
/** A source for an implicit `PendingIntent` flow. */
|
||||
abstract class ImplicitPendingIntentSource extends DataFlow::Node {
|
||||
/** Holds if this source has the specified `state`. */
|
||||
predicate hasState(DataFlow::FlowState state) { state = "" }
|
||||
}
|
||||
|
||||
/** A sink that sends an implicit and mutable `PendingIntent` to a third party. */
|
||||
abstract class ImplicitPendingIntentSink extends DataFlow::Node {
|
||||
/** Holds if this sink has the specified `state`. */
|
||||
predicate hasState(DataFlow::FlowState state) { state = "" }
|
||||
}
|
||||
|
||||
|
||||
@@ -20,5 +20,5 @@ import DataFlow::PathGraph
|
||||
from DataFlow::PathNode source, DataFlow::PathNode sink
|
||||
where any(ImplicitPendingIntentStartConf conf).hasFlowPath(source, sink)
|
||||
select sink.getNode(), source, sink,
|
||||
"An implicit and mutable PendingIntent is created $@ and sent to an unspecified third party.",
|
||||
"An implicit Intent is created $@ and sent to an unspecified third party through a PendingIntent.",
|
||||
source.getNode(), "here"
|
||||
|
||||
Reference in New Issue
Block a user