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

Skip to content

Commit d55acc3

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)