mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
21 lines
703 B
Plaintext
21 lines
703 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 src, DataFlow::Node sink |
|
|
any(ImplicitPendingIntentStartConf c).hasFlow(src, sink)
|
|
|
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|