C#/Java: Add some examples of missing synthetic field element flow.

This commit is contained in:
Michael Nebel
2024-09-19 19:14:05 +02:00
parent 58513cadbf
commit aae8660acc
2 changed files with 32 additions and 0 deletions

View File

@@ -839,6 +839,23 @@ public class SyntheticProperties
}
}
public class SyntheticCollections
{
private object[] array;
// summary=Models;SyntheticCollections;false;SyntheticCollections;(System.Object[]);;Argument[0].Element;Argument[this];taint;df-generated
public SyntheticCollections(object[] array)
{
this.array = array;
}
// summary=Models;SyntheticCollections;false;GetElement;(System.Int32);;Argument[this];ReturnValue;taint;df-generated
public object GetElement(int index)
{
return array[index];
}
}
public class Fanout
{

View File

@@ -0,0 +1,15 @@
package p;
public class SyntheticCollections {
private String[] array;
// summary=p;SyntheticCollections;true;SyntheticCollections;(String[]);;Argument[0].ArrayElement;Argument[this];taint;df-generated
public SyntheticCollections(String[] array) {
this.array = array;
}
// summary=p;SyntheticCollections;true;getElement;(Integer);;Argument[this];ReturnValue;taint;df-generated
public String getElement(Integer index) {
return array[index];
}
}