@@ -66,7 +66,14 @@ public string ReturnField()
66
66
67
67
public class CollectionFlow
68
68
{
69
- private string tainted ;
69
+ private readonly string tainted ;
70
+
71
+ // summary=Models;CollectionFlow;false;CollectionFlow;(System.String);;Argument[0];Argument[this];taint;df-generated
72
+ // contentbased-summary=Models;CollectionFlow;false;CollectionFlow;(System.String);;Argument[0];Argument[this].SyntheticField[Models.CollectionFlow.tainted];value;df-generated
73
+ public CollectionFlow ( string s )
74
+ {
75
+ tainted = s ;
76
+ }
70
77
71
78
// summary=Models;CollectionFlow;false;ReturnArrayElement;(System.Object[]);;Argument[0].Element;ReturnValue;taint;df-generated
72
79
// contentbased-summary=Models;CollectionFlow;false;ReturnArrayElement;(System.Object[]);;Argument[0].Element;ReturnValue;value;df-generated
@@ -177,7 +184,14 @@ public Dictionary<int, int> ReturnSimpleTypeDictionary(Dictionary<int, int> a)
177
184
178
185
public class IEnumerableFlow
179
186
{
180
- private string tainted ;
187
+ private readonly string tainted ;
188
+
189
+ // summary=Models;IEnumerableFlow;false;IEnumerableFlow;(System.String);;Argument[0];Argument[this];taint;df-generated
190
+ // contentbased-summary=Models;IEnumerableFlow;false;IEnumerableFlow;(System.String);;Argument[0];Argument[this].SyntheticField[Models.IEnumerableFlow.tainted];value;df-generated
191
+ public IEnumerableFlow ( string s )
192
+ {
193
+ tainted = s ;
194
+ }
181
195
182
196
// SPURIOUS-summary=Models;IEnumerableFlow;false;ReturnIEnumerable;(System.Collections.Generic.IEnumerable<System.String>);;Argument[0].Element;ReturnValue;taint;df-generated
183
197
// contentbased-summary=Models;IEnumerableFlow;false;ReturnIEnumerable;(System.Collections.Generic.IEnumerable<System.String>);;Argument[0];ReturnValue;value;df-generated
@@ -611,10 +625,17 @@ public abstract class D : IPublic3
611
625
612
626
public class DImpl : D
613
627
{
614
- private string tainted ;
628
+ private readonly string tainted ;
629
+
630
+ // summary=Models;Inheritance+DImpl;false;DImpl;(System.String);;Argument[0];Argument[this];taint;df-generated
631
+ // contentbased-summary=Models;Inheritance+DImpl;false;DImpl;(System.String);;Argument[0];Argument[this].SyntheticField[Models.Inheritance+DImpl.tainted];value;df-generated
632
+ public DImpl ( string s )
633
+ {
634
+ tainted = s ;
635
+ }
615
636
616
637
// summary=Models;Inheritance+IPublic3;true;get_Prop;();;Argument[this];ReturnValue;taint;df-generated
617
- // contentbased-summary=Models;Inheritance+IPublic3 ;true;get_Prop;();;Argument[this].SyntheticField[Models.Inheritance+DImpl.tainted];ReturnValue;value;df-generated
638
+ // contentbased-summary=Models;Inheritance+DImpl ;true;get_Prop;();;Argument[this].SyntheticField[Models.Inheritance+DImpl.tainted];ReturnValue;value;df-generated
618
639
public override string Prop { get { return tainted ; } }
619
640
}
620
641
}
0 commit comments