Files
codeql/java/ql/test/query-tests/security/CWE-730/PolynomialReDoS.ql
Anders Schack-Mulligen ec34d44359 Java: Rename references.
2023-03-23 13:06:19 +01:00

19 lines
578 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::Node sink |
PolynomialRedosFlow::flowTo(sink) and
location = sink.getLocation() and
element = sink.toString() and
value = ""
)
}
}