File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
python/ql/test/experimental/dataflow/consistency Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1
1
uniqueEnclosingCallable
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. |
2
6
uniqueType
3
7
uniqueNodeLocation
4
8
missingLocation
Original file line number Diff line number Diff line change @@ -235,3 +235,17 @@ def non_const_eq_preserves_taint(x):
235
235
SINK (tainted ) # unsafe
236
236
if tainted == x :
237
237
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