Skip to content

Commit 427ccee

Browse files
authored
Merge pull request #21473 from aschackmull/csharp/dataflow-no-split
C#: Remove splitting-awareness from data flow.
2 parents 22f16dd + db0a3e3 commit 427ccee

File tree

6 files changed

+237
-768
lines changed

6 files changed

+237
-768
lines changed

config/identical-files.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@
172172
"cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/reachability/PrintDominance.qll",
173173
"cpp/ql/lib/semmle/code/cpp/ir/implementation/unaliased_ssa/internal/reachability/PrintDominance.qll"
174174
],
175-
"C# ControlFlowReachability": [
176-
"csharp/ql/lib/semmle/code/csharp/dataflow/internal/ControlFlowReachability.qll",
177-
"csharp/ql/lib/semmle/code/csharp/dataflow/internal/rangeanalysis/ControlFlowReachability.qll"
178-
],
179175
"C++ ExternalAPIs": [
180176
"cpp/ql/src/Security/CWE/CWE-020/ExternalAPIs.qll",
181177
"cpp/ql/src/Security/CWE/CWE-020/ir/ExternalAPIs.qll"

csharp/ql/consistency-queries/DataFlowConsistency.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ private module Input implements InputSig<Location, CsharpDataFlow> {
3535
or
3636
n.asExpr().(ObjectCreation).hasInitializer()
3737
or
38-
exists(
39-
n.(PostUpdateNode).getPreUpdateNode().asExprAtNode(LocalFlow::getPostUpdateReverseStep(_))
40-
)
38+
n.(PostUpdateNode).getPreUpdateNode().asExpr() = LocalFlow::getPostUpdateReverseStep(_)
4139
}
4240

4341
predicate argHasPostUpdateExclude(ArgumentNode n) {

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

Lines changed: 0 additions & 246 deletions
This file was deleted.

0 commit comments

Comments
 (0)