File tree Expand file tree Collapse file tree
python/ql/test/experimental/dataflow/consistency Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11uniqueEnclosingCallable
2+ | test.py:239:27:239:27 | ControlFlowNode for p | Node should have one enclosing callable but has 0. |
3+ | test.py:245:5:245:22 | PosOverflowNode for overflowCallee() | Node should have one enclosing callable but has 0. |
4+ | test.py:248:5:248:26 | KwOverflowNode for overflowCallee() | Node should have one enclosing callable but has 0. |
5+ | test.py:251:5:251:33 | KwOverflowNode for overflowCallee() | Node should have one enclosing callable but has 0. |
26uniqueType
37uniqueNodeLocation
48missingLocation
Original file line number Diff line number Diff line change @@ -235,3 +235,17 @@ def non_const_eq_preserves_taint(x):
235235 SINK (tainted ) # unsafe
236236 if tainted == x :
237237 SINK (tainted ) # unsafe
238+
239+ def overflowCallee (* args , p = "" , ** kwargs ):
240+ print ("args" , args )
241+ print ("p" , p )
242+ print ("kwargs" , kwargs )
243+
244+ def synth_arg_posOverflow ():
245+ overflowCallee (42 )
246+
247+ def synth_arg_kwOverflow ():
248+ overflowCallee (foo = 42 )
249+
250+ def synth_arg_kwUnpacked ():
251+ overflowCallee (** {"p" : "42" })
You can’t perform that action at this time.
0 commit comments