Skip to content

Commit 7a098dd

Browse files
Remove AdditionalTaintStep (redundant with NonLocalJumpNode)
1 parent 9af44ed commit 7a098dd

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ private import semmle.code.csharp.dispatch.Dispatch
99
private import semmle.code.csharp.commons.ComparisonTest
1010
private import cil
1111
private import dotnet
12-
// import `TaintedMember` and `AdditionalTaintStep` definitions from other files to avoid potential reevaluation
12+
// import `TaintedMember` definitions from other files to avoid potential reevaluation
1313
private import semmle.code.csharp.frameworks.JsonNET
1414
private import semmle.code.csharp.frameworks.WCF
1515
private import semmle.code.csharp.security.dataflow.flowsources.Remote
@@ -160,8 +160,6 @@ private module Cached {
160160
nodeTo.(FlowSummaryNode).getSummaryNode(), false)
161161
or
162162
nodeTo = nodeFrom.(DataFlow::NonLocalJumpNode).getAJumpSuccessor(false)
163-
or
164-
any(AdditionalTaintStep step).step(nodeFrom, nodeTo)
165163
}
166164
}
167165

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,4 @@ predicate localExprTaint(Expr e1, Expr e2) {
2121
/** A member (property or field) that is tainted if its containing object is tainted. */
2222
abstract class TaintedMember extends AssignableMember { }
2323

24-
/**
25-
* A unit class for adding additional taint steps.
26-
*
27-
* Extend this class to add additional taint steps that should apply to all
28-
* taint configurations.
29-
*/
30-
class AdditionalTaintStep extends Unit {
31-
/**
32-
* Holds if the step from `node1` to `node2` should be considered a taint
33-
* step for all configurations.
34-
*/
35-
abstract predicate step(DataFlow::Node node1, DataFlow::Node node2);
36-
}
37-
3824
predicate localTaintStep = localTaintStepImpl/2;

0 commit comments

Comments
 (0)