Skip to content

Commit 0b24af9

Browse files
authored
Merge pull request #7349 from aschackmull/dataflow/state
Dataflow: Add support for flow state
2 parents 4ffd8c6 + f7cf327 commit 0b24af9

File tree

54 files changed

+29226
-15939
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+29226
-15939
lines changed

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

Lines changed: 1074 additions & 589 deletions
Large diffs are not rendered by default.

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

Lines changed: 1074 additions & 589 deletions
Large diffs are not rendered by default.

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

Lines changed: 1074 additions & 589 deletions
Large diffs are not rendered by default.

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

Lines changed: 1074 additions & 589 deletions
Large diffs are not rendered by default.

cpp/ql/lib/semmle/code/cpp/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ private import DataFlowImplSpecific::Public
33
import Cached
44

55
module DataFlowImplCommonPublic {
6+
/** A state value to track during data flow. */
7+
class FlowState = string;
8+
9+
/**
10+
* The default state, which is used when the state is unspecified for a source
11+
* or a sink.
12+
*/
13+
class FlowStateEmpty extends FlowState {
14+
FlowStateEmpty() { this = "" }
15+
}
16+
617
private newtype TFlowFeature =
718
TFeatureHasSourceCallContext() or
819
TFeatureHasSinkCallContext() or

0 commit comments

Comments
 (0)