mirror of
https://github.com/github/codeql.git
synced 2026-04-21 15:05:56 +02:00
C#/Java: Add test for missing neutral summary generation.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/java-all
|
||||
extensible: neutralModel
|
||||
data:
|
||||
- [ "p", "Sinks", "nosink", "(Object)", "sink", "manual"]
|
||||
- [ "p", "Sinks", "nosink", "(Object)", "summary", "df-generated"]
|
||||
@@ -21,6 +21,11 @@ public class Sinks {
|
||||
// neutral=p;Sinks;sink2;(Object);summary;df-generated
|
||||
public void sink2(Object o) {}
|
||||
|
||||
// Defined as sink neutral file in the model file next to the
|
||||
// neutral test.
|
||||
// MISSING NEUTRAL.
|
||||
public void nosink(Object o) {}
|
||||
|
||||
// sink=p;Sinks;true;copyFileToDirectory;(Path,Path,CopyOption[]);;Argument[0];path-injection;df-generated
|
||||
// sink=p;Sinks;true;copyFileToDirectory;(Path,Path,CopyOption[]);;Argument[1];path-injection;df-generated
|
||||
// neutral=p;Sinks;copyFileToDirectory;(Path,Path,CopyOption[]);summary;df-generated
|
||||
|
||||
Reference in New Issue
Block a user