Skip to content

Commit 4cbea36

Browse files
committed
branch limit
1 parent 98503b6 commit 4cbea36

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

shared/dataflow/codeql/dataflow/internal/DataFlowImpl.qll

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ module MakeImpl<InputSig Lang> {
11331133
exists(int b, int j |
11341134
b = branch(ret) and
11351135
j = join(out) and
1136-
if b.minimum(j) <= Config::fieldFlowBranchLimit()
1136+
if j <= Config::fieldFlowBranchLimit()
11371137
then allowsFieldFlow = true
11381138
else allowsFieldFlow = false
11391139
)
@@ -1149,13 +1149,14 @@ module MakeImpl<InputSig Lang> {
11491149
DataFlowCall call, ArgNodeEx arg, ParamNodeEx p, boolean allowsFieldFlow
11501150
) {
11511151
flowIntoCallNodeCand1(call, arg, p) and
1152-
exists(int b, int j |
1153-
b = branch(arg) and
1154-
j = join(p) and
1155-
if b.minimum(j) <= Config::fieldFlowBranchLimit()
1156-
then allowsFieldFlow = true
1157-
else allowsFieldFlow = false
1158-
)
1152+
allowsFieldFlow = true
1153+
// exists(int b, int j |
1154+
// b = branch(arg) and
1155+
// j = join(p) and
1156+
// if b.minimum(j) <= Config::fieldFlowBranchLimit()
1157+
// then allowsFieldFlow = true
1158+
// else allowsFieldFlow = false
1159+
// )
11591160
}
11601161

11611162
private signature module StageSig {

0 commit comments

Comments
 (0)