Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 60c3d07

Browse files
committed
Update DataFlowImplConsistency.qll
1 parent bbb1c8c commit 60c3d07

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

javascript/ql/lib/semmle/javascript/dataflow/internal/DataFlowImplConsistency.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ private module ConsistencyConfig implements InputSig<Location, JSDataFlow> {
3737
isAmbientNode(call.asOrdinaryCall()) or
3838
isAmbientNode(call.asAccessorCall())
3939
}
40+
41+
predicate argHasPostUpdateExclude(ArgumentNode node) {
42+
// Side-effects directly on these can't propagate back to the caller, and for longer access paths it's too imprecise
43+
node instanceof TStaticArgumentArrayNode or
44+
node instanceof TDynamicArgumentArrayNode
45+
}
4046
}
4147

4248
module Consistency = MakeConsistency<Location, JSDataFlow, JSTaintFlow, ConsistencyConfig>;

0 commit comments

Comments
 (0)