Skip to content

Commit 201c4aa

Browse files
committed
Python: add comment
1 parent c064a9e commit 201c4aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,9 @@ abstract class DataFlowFunction extends DataFlowCallable, TFunction {
368368
int positionalOffset() { result = 0 }
369369

370370
override ParameterNode getParameter(ParameterPosition ppos) {
371+
// Do not handle lower bound positions (such as `[1..]`) here
372+
// they are handled by parameter matching and would create
373+
// inconsistencies here as multiple parameters could match such a position.
371374
exists(int index | ppos.isPositional(index) |
372375
result.getParameter() = func.getArg(index + this.positionalOffset())
373376
)

0 commit comments

Comments
 (0)