Skip to content

Commit 18f3f29

Browse files
committed
Data flow: Use accessPathLimit() in partial flow as well
1 parent 6041d52 commit 18f3f29

19 files changed

Lines changed: 19 additions & 19 deletions

File tree

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

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

25252525
private newtype TPartialAccessPath =
25262526
TPartialNil(DataFlowType t) or
2527-
TPartialCons(Content f, int len) { len in [1 .. 5] }
2527+
TPartialCons(Content f, int len) { len in [1 .. accessPathLimit()] }
25282528

25292529
/**
25302530
* Conceptually a list of `Content`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
@@ -2524,7 +2524,7 @@ private module FlowExploration {
25242524

25252525
private newtype TPartialAccessPath =
25262526
TPartialNil(DataFlowType t) or
2527-
TPartialCons(Content f, int len) { len in [1 .. 5] }
2527+
TPartialCons(Content f, int len) { len in [1 .. accessPathLimit()] }
25282528

25292529
/**
25302530
* Conceptually a list of `Content`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
@@ -2524,7 +2524,7 @@ private module FlowExploration {
25242524

25252525
private newtype TPartialAccessPath =
25262526
TPartialNil(DataFlowType t) or
2527-
TPartialCons(Content f, int len) { len in [1 .. 5] }
2527+
TPartialCons(Content f, int len) { len in [1 .. accessPathLimit()] }
25282528

25292529
/**
25302530
* Conceptually a list of `Content`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
@@ -2524,7 +2524,7 @@ private module FlowExploration {
25242524

25252525
private newtype TPartialAccessPath =
25262526
TPartialNil(DataFlowType t) or
2527-
TPartialCons(Content f, int len) { len in [1 .. 5] }
2527+
TPartialCons(Content f, int len) { len in [1 .. accessPathLimit()] }
25282528

25292529
/**
25302530
* Conceptually a list of `Content`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
@@ -2524,7 +2524,7 @@ private module FlowExploration {
25242524

25252525
private newtype TPartialAccessPath =
25262526
TPartialNil(DataFlowType t) or
2527-
TPartialCons(Content f, int len) { len in [1 .. 5] }
2527+
TPartialCons(Content f, int len) { len in [1 .. accessPathLimit()] }
25282528

25292529
/**
25302530
* Conceptually a list of `Content`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
@@ -2524,7 +2524,7 @@ private module FlowExploration {
25242524

25252525
private newtype TPartialAccessPath =
25262526
TPartialNil(DataFlowType t) or
2527-
TPartialCons(Content f, int len) { len in [1 .. 5] }
2527+
TPartialCons(Content f, int len) { len in [1 .. accessPathLimit()] }
25282528

25292529
/**
25302530
* Conceptually a list of `Content`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
@@ -2524,7 +2524,7 @@ private module FlowExploration {
25242524

25252525
private newtype TPartialAccessPath =
25262526
TPartialNil(DataFlowType t) or
2527-
TPartialCons(Content f, int len) { len in [1 .. 5] }
2527+
TPartialCons(Content f, int len) { len in [1 .. accessPathLimit()] }
25282528

25292529
/**
25302530
* Conceptually a list of `Content`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
@@ -2524,7 +2524,7 @@ private module FlowExploration {
25242524

25252525
private newtype TPartialAccessPath =
25262526
TPartialNil(DataFlowType t) or
2527-
TPartialCons(Content f, int len) { len in [1 .. 5] }
2527+
TPartialCons(Content f, int len) { len in [1 .. accessPathLimit()] }
25282528

25292529
/**
25302530
* Conceptually a list of `Content`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
@@ -2524,7 +2524,7 @@ private module FlowExploration {
25242524

25252525
private newtype TPartialAccessPath =
25262526
TPartialNil(DataFlowType t) or
2527-
TPartialCons(Content f, int len) { len in [1 .. 5] }
2527+
TPartialCons(Content f, int len) { len in [1 .. accessPathLimit()] }
25282528

25292529
/**
25302530
* Conceptually a list of `Content`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
@@ -2524,7 +2524,7 @@ private module FlowExploration {
25242524

25252525
private newtype TPartialAccessPath =
25262526
TPartialNil(DataFlowType t) or
2527-
TPartialCons(Content f, int len) { len in [1 .. 5] }
2527+
TPartialCons(Content f, int len) { len in [1 .. accessPathLimit()] }
25282528

25292529
/**
25302530
* Conceptually a list of `Content`s followed by a `Type`, but only the first

0 commit comments

Comments
 (0)