Skip to content

Commit b33f592

Browse files
committed
Data flow: Sync files
1 parent e0bd210 commit b33f592

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ module Private {
520520
predicate summaryParameterNodeRange(SummarizedCallable c, ParameterPosition pos) {
521521
parameterReadState(c, _, pos)
522522
or
523-
isParameterPostUpdate(_, c, pos)
523+
// Same as `isParameterPostUpdate(_, c, pos)`, but can be used in a negative context
524+
any(SummaryNodeState state).isOutputState(c, SummaryComponentStack::argument(pos))
524525
}
525526

526527
private predicate callbackOutput(

go/ql/lib/semmle/go/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ module Private {
520520
predicate summaryParameterNodeRange(SummarizedCallable c, ParameterPosition pos) {
521521
parameterReadState(c, _, pos)
522522
or
523-
isParameterPostUpdate(_, c, pos)
523+
// Same as `isParameterPostUpdate(_, c, pos)`, but can be used in a negative context
524+
any(SummaryNodeState state).isOutputState(c, SummaryComponentStack::argument(pos))
524525
}
525526

526527
private predicate callbackOutput(

java/ql/lib/semmle/code/java/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ module Private {
520520
predicate summaryParameterNodeRange(SummarizedCallable c, ParameterPosition pos) {
521521
parameterReadState(c, _, pos)
522522
or
523-
isParameterPostUpdate(_, c, pos)
523+
// Same as `isParameterPostUpdate(_, c, pos)`, but can be used in a negative context
524+
any(SummaryNodeState state).isOutputState(c, SummaryComponentStack::argument(pos))
524525
}
525526

526527
private predicate callbackOutput(

python/ql/lib/semmle/python/dataflow/new/internal/FlowSummaryImpl.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ module Private {
520520
predicate summaryParameterNodeRange(SummarizedCallable c, ParameterPosition pos) {
521521
parameterReadState(c, _, pos)
522522
or
523-
isParameterPostUpdate(_, c, pos)
523+
// Same as `isParameterPostUpdate(_, c, pos)`, but can be used in a negative context
524+
any(SummaryNodeState state).isOutputState(c, SummaryComponentStack::argument(pos))
524525
}
525526

526527
private predicate callbackOutput(

swift/ql/lib/codeql/swift/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ module Private {
520520
predicate summaryParameterNodeRange(SummarizedCallable c, ParameterPosition pos) {
521521
parameterReadState(c, _, pos)
522522
or
523-
isParameterPostUpdate(_, c, pos)
523+
// Same as `isParameterPostUpdate(_, c, pos)`, but can be used in a negative context
524+
any(SummaryNodeState state).isOutputState(c, SummaryComponentStack::argument(pos))
524525
}
525526

526527
private predicate callbackOutput(

0 commit comments

Comments
 (0)