Skip to content

Commit 8ceb33d

Browse files
committed
Python: Also restrict StepSumary::step
1 parent e6e1cc2 commit 8ceb33d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/dataflow/new/TypeTracker.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module StepSummary {
5151
* heap and/or inter-procedural step from `nodeFrom` to `nodeTo`.
5252
*/
5353
cached
54-
predicate step(Node nodeFrom, Node nodeTo, StepSummary summary) {
54+
predicate step(LocalSourceNode nodeFrom, Node nodeTo, StepSummary summary) {
5555
exists(Node mid | typePreservingStep*(nodeFrom, mid) and smallstep(mid, nodeTo, summary))
5656
}
5757

0 commit comments

Comments
 (0)