mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Python: Constrain execution paths for taint_at_depth
Thanks Taus!
This commit is contained in:
@@ -964,6 +964,7 @@ private TaintKind taint_at_depth(SequenceKind parent_kind, int depth) {
|
||||
result = parent_kind.getMember()
|
||||
or
|
||||
// recursive case
|
||||
depth > 1 and
|
||||
result = taint_at_depth(parent_kind.getMember(), depth-1)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user