File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
python/ql/lib/semmle/python/dataflow/new/internal Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,12 @@ private module SpeculativeTaintFlow {
233233 predicate speculativeTaintStep ( DataFlow:: Node src , DataFlow:: Node sink ) {
234234 exists ( DataFlowDispatch:: DataFlowCall call , DataFlowDispatch:: ArgumentPosition argpos |
235235 // TODO: exclude neutrals and anything that has QL modeling.
236- not exists ( DataFlowDispatch:: viableCallable ( call ) ) and
236+ not exists ( DataFlowDispatch:: DataFlowCall call0 |
237+ // Workaround for the fact that python currently associates several
238+ // DataFlowCalls with a single call.
239+ src .( DataFlowPublic:: ArgumentNode ) .argumentOf ( call0 , _) and
240+ exists ( DataFlowDispatch:: viableCallable ( call0 ) )
241+ ) and
237242 call instanceof DataFlowDispatch:: PotentialLibraryCall and
238243 src .( DataFlowPublic:: ArgumentNode ) .argumentOf ( call , argpos )
239244 |
You can’t perform that action at this time.
0 commit comments