mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
19 lines
583 B
Plaintext
19 lines
583 B
Plaintext
import java
|
|
import semmle.code.java.security.UnsafeAndroidAccessQuery
|
|
import utils.test.InlineExpectationsTest
|
|
|
|
module UnsafeAndroidAccessTest implements TestSig {
|
|
string getARelevantTag() { result = "hasUnsafeAndroidAccess" }
|
|
|
|
predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "hasUnsafeAndroidAccess" and
|
|
exists(DataFlow::Node sink | FetchUntrustedResourceFlow::flowTo(sink) |
|
|
sink.getLocation() = location and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|
|
|
|
import MakeTest<UnsafeAndroidAccessTest>
|