mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
19 lines
670 B
Plaintext
19 lines
670 B
Plaintext
import java
|
|
import semmle.code.java.security.ImplicitPendingIntentsQuery
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
class ImplicitPendingIntentsTest extends InlineExpectationsTest {
|
|
ImplicitPendingIntentsTest() { this = "ImplicitPendingIntentsTest" }
|
|
|
|
override string getARelevantTag() { result = ["hasImplicitPendingIntent"] }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "hasImplicitPendingIntent" and
|
|
exists(DataFlow::Node sink | any(ImplicitPendingIntentStartConf c).hasFlowTo(sink) |
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|