@@ -54,8 +54,8 @@ def SINK_F(x):
54
54
tainted_list = MS_reversed (TAINTED_LIST )
55
55
ensure_tainted (
56
56
tainted_list , # $ tainted
57
- tainted_list [0 ] # $ tainted
58
- )
57
+ tainted_list [0 ], # $ tainted
58
+ )
59
59
60
60
# Complex summaries
61
61
def box (x ):
@@ -67,8 +67,8 @@ def box(x):
67
67
tainted_mapped = MS_list_map (box , TAINTED_LIST )
68
68
ensure_tainted (
69
69
tainted_mapped , # $ tainted
70
- tainted_mapped [0 ][0 ] # $ tainted
71
- )
70
+ tainted_mapped [0 ][0 ], # $ tainted
71
+ )
72
72
73
73
def explicit_identity (x ):
74
74
return x
@@ -79,35 +79,35 @@ def explicit_identity(x):
79
79
tainted_mapped_explicit = MS_list_map (explicit_identity , TAINTED_LIST )
80
80
ensure_tainted (
81
81
tainted_mapped_explicit , # $ tainted
82
- tainted_mapped_explicit [0 ] # $ tainted
83
- )
82
+ tainted_mapped_explicit [0 ], # $ tainted
83
+ )
84
84
85
85
via_map_summary = MS_list_map (MS_identity , [SOURCE ])
86
86
SINK (via_map_summary [0 ]) # $ flow="SOURCE, l:-1 -> via_map_summary[0]"
87
87
88
88
tainted_mapped_summary = MS_list_map (MS_identity , TAINTED_LIST )
89
89
ensure_tainted (
90
90
tainted_mapped_summary , # $ tainted
91
- tainted_mapped_summary [0 ] # $ tainted
92
- )
91
+ tainted_mapped_summary [0 ], # $ tainted
92
+ )
93
93
94
94
via_append_el = MS_append_to_list ([], SOURCE )
95
95
SINK (via_append_el [0 ]) # $ flow="SOURCE, l:-1 -> via_append_el[0]"
96
96
97
97
tainted_list_el = MS_append_to_list ([], TAINTED_STRING )
98
98
ensure_tainted (
99
99
tainted_list_el , # $ tainted
100
- tainted_list_el [0 ] # $ tainted
101
- )
100
+ tainted_list_el [0 ], # $ tainted
101
+ )
102
102
103
103
via_append = MS_append_to_list ([SOURCE ], NONSOURCE )
104
104
SINK (via_append [0 ]) # $ flow="SOURCE, l:-1 -> via_append[0]"
105
105
106
106
tainted_list_implicit = MS_append_to_list (TAINTED_LIST , NONSOURCE )
107
107
ensure_tainted (
108
108
tainted_list , # $ tainted
109
- tainted_list [0 ] # $ tainted
110
- )
109
+ tainted_list [0 ], # $ tainted
110
+ )
111
111
112
112
# Modeled flow-summary is not value preserving
113
113
from json import MS_loads as json_loads
@@ -120,5 +120,5 @@ def explicit_identity(x):
120
120
tainted_resultlist = json_loads (TAINTED_STRING )
121
121
ensure_tainted (
122
122
tainted_resultlist , # $ tainted
123
- tainted_resultlist [0 ] # $ tainted
124
- )
123
+ tainted_resultlist [0 ], # $ tainted
124
+ )
0 commit comments