Python: Add summary test append_to_list

This commit is contained in:
Rasmus Lerchedahl Petersen
2022-09-06 18:42:32 +02:00
parent 744fbf0c1b
commit f6d807aec0
3 changed files with 38 additions and 9 deletions

View File

@@ -60,6 +60,9 @@ SINK(tainted_mapped_explicit[0]) # $ flow="SOURCE, l:-1 -> tainted_mapped_expli
tainted_mapped_summary = map(identity, [SOURCE])
SINK(tainted_mapped_summary[0]) # $ flow="SOURCE, l:-1 -> tainted_mapped_summary[0]"
tainted_list = append_to_list([], SOURCE)
SINK(tainted_list[0]) # $ flow="SOURCE, l:-1 -> tainted_list[0]"
from json import loads as json_loads
tainted_resultlist = json_loads(SOURCE)
SINK(tainted_resultlist[0]) # $ flow="SOURCE, l:-1 -> tainted_resultlist[0]"