mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
20 lines
572 B
Plaintext
20 lines
572 B
Plaintext
import java
|
|
import semmle.code.java.dataflow.FlowSources
|
|
import utils.test.InlineExpectationsTest
|
|
|
|
module SourceTest implements TestSig {
|
|
string getARelevantTag() { result = "source" }
|
|
|
|
predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "source" and
|
|
exists(RemoteFlowSource source |
|
|
not source.asParameter().getCallable().getDeclaringType().hasName("DefaultConsumer") and
|
|
source.getLocation() = location and
|
|
element = source.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|
|
|
|
import MakeTest<SourceTest>
|