mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
19 lines
536 B
Plaintext
19 lines
536 B
Plaintext
import TestUtilities.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>
|