Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,14 @@ module MakeModelGenerator<
}

predicate isSink(DataFlow::Node sink, FlowState state) {
// Sinks are provided by `isSink/1`
none()
}

predicate isSink(DataFlow::Node sink) {
sink instanceof ReturnNodeExt and
not isOwnInstanceAccessNode(sink) and
not exists(captureQualifierFlow(getAsExprEnclosingCallable(sink))) and
(state instanceof TaintRead or state instanceof TaintStore)
not exists(captureQualifierFlow(getAsExprEnclosingCallable(sink)))
}

predicate isAdditionalFlowStep(
Expand Down
Loading