mirror of
https://github.com/github/codeql.git
synced 2026-02-11 04:31:05 +01:00
19 lines
605 B
Plaintext
19 lines
605 B
Plaintext
import TestUtilities.InlineExpectationsTest
|
|
import semmle.code.java.security.regexp.PolynomialReDoSQuery
|
|
|
|
class HasPolyRedos extends InlineExpectationsTest {
|
|
HasPolyRedos() { this = "HasPolyRedos" }
|
|
|
|
override string getARelevantTag() { result = "hasPolyRedos" }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "hasPolyRedos" and
|
|
exists(DataFlow::PathNode sink |
|
|
hasPolynomialReDoSResult(_, sink, _) and
|
|
location = sink.getNode().getLocation() and
|
|
element = sink.getNode().toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|