mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
19 lines
533 B
Plaintext
19 lines
533 B
Plaintext
import utils.test.InlineExpectationsTest
|
|
import semmle.code.java.security.regexp.PolynomialReDoSQuery
|
|
|
|
module HasPolyRedos implements TestSig {
|
|
string getARelevantTag() { result = "hasPolyRedos" }
|
|
|
|
predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "hasPolyRedos" and
|
|
exists(DataFlow::Node sink |
|
|
PolynomialRedosFlow::flowTo(sink) and
|
|
location = sink.getLocation() and
|
|
element = sink.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|
|
|
|
import MakeTest<HasPolyRedos>
|