Skip to content

Commit e06a54c

Browse files
authored
Merge pull request github#3494 from hvitved/dataflow/partial-flow-access-path-limit
Approved by aschackmull
2 parents f2f020f + 72e6c9c commit e06a54c

File tree

19 files changed

+19
-19
lines changed

19 files changed

+19
-19
lines changed

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ private module FlowExploration {
25642564

25652565
private newtype TPartialAccessPath =
25662566
TPartialNil(DataFlowType t) or
2567-
TPartialCons(TypedContent tc, int len) { len in [1 .. 5] }
2567+
TPartialCons(TypedContent tc, int len) { len in [1 .. accessPathLimit()] }
25682568

25692569
/**
25702570
* Conceptually a list of `TypedContent`s followed by a `Type`, but only the first

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl2.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ private module FlowExploration {
25642564

25652565
private newtype TPartialAccessPath =
25662566
TPartialNil(DataFlowType t) or
2567-
TPartialCons(TypedContent tc, int len) { len in [1 .. 5] }
2567+
TPartialCons(TypedContent tc, int len) { len in [1 .. accessPathLimit()] }
25682568

25692569
/**
25702570
* Conceptually a list of `TypedContent`s followed by a `Type`, but only the first

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl3.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ private module FlowExploration {
25642564

25652565
private newtype TPartialAccessPath =
25662566
TPartialNil(DataFlowType t) or
2567-
TPartialCons(TypedContent tc, int len) { len in [1 .. 5] }
2567+
TPartialCons(TypedContent tc, int len) { len in [1 .. accessPathLimit()] }
25682568

25692569
/**
25702570
* Conceptually a list of `TypedContent`s followed by a `Type`, but only the first

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl4.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ private module FlowExploration {
25642564

25652565
private newtype TPartialAccessPath =
25662566
TPartialNil(DataFlowType t) or
2567-
TPartialCons(TypedContent tc, int len) { len in [1 .. 5] }
2567+
TPartialCons(TypedContent tc, int len) { len in [1 .. accessPathLimit()] }
25682568

25692569
/**
25702570
* Conceptually a list of `TypedContent`s followed by a `Type`, but only the first

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImplLocal.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ private module FlowExploration {
25642564

25652565
private newtype TPartialAccessPath =
25662566
TPartialNil(DataFlowType t) or
2567-
TPartialCons(TypedContent tc, int len) { len in [1 .. 5] }
2567+
TPartialCons(TypedContent tc, int len) { len in [1 .. accessPathLimit()] }
25682568

25692569
/**
25702570
* Conceptually a list of `TypedContent`s followed by a `Type`, but only the first

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ private module FlowExploration {
25642564

25652565
private newtype TPartialAccessPath =
25662566
TPartialNil(DataFlowType t) or
2567-
TPartialCons(TypedContent tc, int len) { len in [1 .. 5] }
2567+
TPartialCons(TypedContent tc, int len) { len in [1 .. accessPathLimit()] }
25682568

25692569
/**
25702570
* Conceptually a list of `TypedContent`s followed by a `Type`, but only the first

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl2.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ private module FlowExploration {
25642564

25652565
private newtype TPartialAccessPath =
25662566
TPartialNil(DataFlowType t) or
2567-
TPartialCons(TypedContent tc, int len) { len in [1 .. 5] }
2567+
TPartialCons(TypedContent tc, int len) { len in [1 .. accessPathLimit()] }
25682568

25692569
/**
25702570
* Conceptually a list of `TypedContent`s followed by a `Type`, but only the first

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl3.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ private module FlowExploration {
25642564

25652565
private newtype TPartialAccessPath =
25662566
TPartialNil(DataFlowType t) or
2567-
TPartialCons(TypedContent tc, int len) { len in [1 .. 5] }
2567+
TPartialCons(TypedContent tc, int len) { len in [1 .. accessPathLimit()] }
25682568

25692569
/**
25702570
* Conceptually a list of `TypedContent`s followed by a `Type`, but only the first

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl4.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ private module FlowExploration {
25642564

25652565
private newtype TPartialAccessPath =
25662566
TPartialNil(DataFlowType t) or
2567-
TPartialCons(TypedContent tc, int len) { len in [1 .. 5] }
2567+
TPartialCons(TypedContent tc, int len) { len in [1 .. accessPathLimit()] }
25682568

25692569
/**
25702570
* Conceptually a list of `TypedContent`s followed by a `Type`, but only the first

csharp/ql/src/semmle/code/csharp/dataflow/internal/DataFlowImpl.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ private module FlowExploration {
25642564

25652565
private newtype TPartialAccessPath =
25662566
TPartialNil(DataFlowType t) or
2567-
TPartialCons(TypedContent tc, int len) { len in [1 .. 5] }
2567+
TPartialCons(TypedContent tc, int len) { len in [1 .. accessPathLimit()] }
25682568

25692569
/**
25702570
* Conceptually a list of `TypedContent`s followed by a `Type`, but only the first

0 commit comments

Comments
 (0)