Files
codeql/java/ql/test/query-tests/security/CWE-927/ImplicitPendingIntentsTest.ql

19 lines
600 B
Plaintext

import java
import semmle.code.java.security.ImplicitPendingIntentsQuery
import utils.test.InlineExpectationsTest
module ImplicitPendingIntentsTest implements TestSig {
string getARelevantTag() { result = "hasImplicitPendingIntent" }
predicate hasActualResult(Location location, string element, string tag, string value) {
tag = "hasImplicitPendingIntent" and
exists(DataFlow::Node sink | ImplicitPendingIntentStartFlow::flowTo(sink) |
sink.getLocation() = location and
element = sink.toString() and
value = ""
)
}
}
import MakeTest<ImplicitPendingIntentsTest>