Merge pull request #12476 from aschackmull/java/refactor-dataflow-queries-2

Java: Refactor more dataflow queries to the new API
This commit is contained in:
Anders Schack-Mulligen
2023-03-15 09:40:32 +01:00
committed by GitHub
5 changed files with 102 additions and 60 deletions

View File

@@ -8,10 +8,10 @@ class HasPolyRedos extends InlineExpectationsTest {
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
exists(DataFlow::Node sink |
PolynomialRedosFlow::hasFlowTo(sink) and
location = sink.getLocation() and
element = sink.toString() and
value = ""
)
}