mirror of
https://github.com/github/codeql.git
synced 2026-04-24 16:25:15 +02:00
C#/Java: Add some examples of missing synthetic field element flow.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user