We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 681179d commit a9f7756Copy full SHA for a9f7756
javascript/ql/src/semmle/javascript/security/dataflow/UnsafeCodeConstruction.qll
@@ -41,11 +41,7 @@ module UnsafeCodeConstruction {
41
// override to require that there is a path without unmatched return steps
42
override predicate hasFlowPath(DataFlow::SourcePathNode source, DataFlow::SinkPathNode sink) {
43
super.hasFlowPath(source, sink) and
44
- exists(DataFlow::MidPathNode mid |
45
- source.getASuccessor*() = mid and
46
- sink = mid.getASuccessor() and
47
- mid.getPathSummary().hasReturn() = false
48
- )
+ DataFlow::hasPathWithoutUnmatchedReturn(source, sink)
49
}
50
51
0 commit comments