Skip to content
Merged
Show file tree
Hide file tree
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 @@ -334,6 +334,12 @@ private module ThisFlow {
*/
predicate localFlow(Node node1, Node node2) { localFlowStep*(node1, node2) }

/**
* Holds if data can flow from `e1` to `e2` in zero or more
* local (intra-procedural) steps.
*/
predicate localExprFlow(Expr e1, Expr e2) { localFlow(exprNode(e1), exprNode(e2)) }

/**
* Holds if the `FieldRead` is not completely determined by explicit SSA
* updates.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ private import semmle.code.java.dataflow.internal.ContainerFlow
*/
predicate localTaint(DataFlow::Node src, DataFlow::Node sink) { localTaintStep*(src, sink) }

/**
* Holds if taint can flow from `src` to `sink` in zero or more
* local (intra-procedural) steps.
*/
predicate localExprTaint(Expr src, Expr sink) {
localTaint(DataFlow::exprNode(src), DataFlow::exprNode(sink))
}

/**
* Holds if taint can flow in one local step from `src` to `sink`.
*/
Expand Down