Skip to content

Commit f39dc41

Browse files
committed
Python: use imprecise content in cp
We had accidentally used precise content leadingto blowup
1 parent 64890a1 commit f39dc41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ predicate yieldStoreStep(Node nodeFrom, Content c, Node nodeTo) {
195195
c instanceof SetElementContent
196196
or
197197
comp instanceof DictComp and
198-
c instanceof DictionaryElementContent
198+
c instanceof DictionaryElementAnyContent
199199
)
200200
or
201201
not exists(Comp comp | func = comp.getFunction()) and
@@ -204,7 +204,7 @@ predicate yieldStoreStep(Node nodeFrom, Content c, Node nodeTo) {
204204
or
205205
c instanceof SetElementContent
206206
or
207-
c instanceof DictionaryElementContent
207+
c instanceof DictionaryElementAnyContent
208208
)
209209
)
210210
}

0 commit comments

Comments
 (0)