mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
20 lines
562 B
Plaintext
20 lines
562 B
Plaintext
import java
|
|
import semmle.code.java.security.SensitiveKeyboardCacheQuery
|
|
import utils.test.InlineExpectationsTest
|
|
|
|
module SensitiveKeyboardCacheTest implements TestSig {
|
|
string getARelevantTag() { result = "hasResult" }
|
|
|
|
predicate hasActualResult(Location loc, string element, string tag, string value) {
|
|
exists(AndroidEditableXmlElement el |
|
|
el = getASensitiveCachedInput() and
|
|
loc = el.getLocation() and
|
|
element = el.toString() and
|
|
tag = "hasResult" and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|
|
|
|
import MakeTest<SensitiveKeyboardCacheTest>
|