Skip to content

Commit d55acc3

Browse files
committed
Python: Constrain execution paths for taint_at_depth
Thanks Taus!
1 parent 8aadb8b commit d55acc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/ql/src/semmle/python/dataflow/Implementation.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,7 @@ private TaintKind taint_at_depth(SequenceKind parent_kind, int depth) {
964964
result = parent_kind.getMember()
965965
or
966966
// recursive case
967+
depth > 1 and
967968
result = taint_at_depth(parent_kind.getMember(), depth-1)
968969
)
969970
}

0 commit comments

Comments
 (0)