Merge pull request #12930 from aschackmull/dataflow/split-typedcontent

Dataflow: Refactor access paths to split TypedContent into an explicit pair
This commit is contained in:
Anders Schack-Mulligen
2023-05-01 14:58:15 +02:00
committed by GitHub
18 changed files with 5286 additions and 5702 deletions

View File

@@ -139,9 +139,9 @@ module ThroughFlowConfig implements DataFlow::StateConfigSig {
predicate isAdditionalFlowStep(
DataFlow::Node node1, FlowState state1, DataFlow::Node node2, FlowState state2
) {
exists(DataFlowImplCommon::TypedContent tc |
DataFlowImplCommon::store(node1, tc, node2, _) and
isRelevantContent(tc.getContent()) and
exists(DataFlow::Content c |
DataFlowImplCommon::store(node1, c, node2, _, _) and
isRelevantContent(c) and
(
state1 instanceof TaintRead and state2.(TaintStore).getStep() = 1
or