Skip to content

Commit 42278eb

Browse files
committed
Add imports for specific jump nodes
1 parent d824d24 commit 42278eb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPublic.qll

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,16 @@ predicate localFlow(Node source, Node sink) { localFlowStep*(source, sink) }
147147
pragma[inline]
148148
predicate localExprFlow(Expr e1, Expr e2) { localFlow(exprNode(e1), exprNode(e2)) }
149149

150+
/**
151+
* A module importing the modules that provide non local jump node declarations,
152+
* ensuring that they are visible to the taint tracking / data flow library.
153+
*/
154+
private module JumpNodes {
155+
private import semmle.code.csharp.frameworks.microsoft.aspnetcore.Components
156+
private import semmle.code.csharp.frameworks.Razor
157+
private import semmle.code.csharp.frameworks.NHibernate
158+
}
159+
150160
/**
151161
* A data flow node that jumps between callables. This can be extended in
152162
* framework code to add additional data flow steps.

0 commit comments

Comments
 (0)