Skip to content

Commit 1718ef8

Browse files
committed
Data flow: Inline local(Expr)?(Flow|Taint)
See #7791
1 parent 736435a commit 1718ef8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

go/ql/lib/semmle/go/dataflow/internal/DataFlowUtil.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ predicate simpleLocalFlowStep(Node nodeFrom, Node nodeTo) {
131131
* Holds if data flows from `source` to `sink` in zero or more local
132132
* (intra-procedural) steps.
133133
*/
134+
pragma[inline]
134135
predicate localFlow(Node source, Node sink) { localFlowStep*(source, sink) }
135136

136137
private newtype TContent =

go/ql/lib/semmle/go/dataflow/internal/TaintTrackingUtil.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ private import FlowSummaryImpl as FlowSummaryImpl
99
* Holds if taint can flow from `src` to `sink` in zero or more
1010
* local (intra-procedural) steps.
1111
*/
12+
pragma[inline]
1213
predicate localTaint(DataFlow::Node src, DataFlow::Node sink) { localTaintStep*(src, sink) }
1314

1415
/**
1516
* Holds if taint can flow from `src` to `sink` in zero or more
1617
* local (intra-procedural) steps.
1718
*/
19+
pragma[inline]
1820
predicate localExprTaint(Expr src, Expr sink) {
1921
localTaint(DataFlow::exprNode(src), DataFlow::exprNode(sink))
2022
}

0 commit comments

Comments
 (0)