mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
C#: Add example of missing sink generation.
This commit is contained in:
@@ -24,6 +24,15 @@ public class NewSinks
|
||||
// neutral=Sinks;NewSinks;NoSink;(System.Object);summary;df-generated
|
||||
public static void NoSink(object o) => throw null;
|
||||
|
||||
// Sink and Source defined in the extensible file next to the sink test.
|
||||
// MISSING SINK
|
||||
// neutral=Sinks;NewSinks;SaveAndGet;(System.Object);summary;df-generated
|
||||
public static object SaveAndGet(object o)
|
||||
{
|
||||
Sink(o);
|
||||
return null;
|
||||
}
|
||||
|
||||
// New sink
|
||||
// sink=Sinks;NewSinks;false;WrapResponseWrite;(System.Object);;Argument[0];html-injection;df-generated
|
||||
// neutral=Sinks;NewSinks;WrapResponseWrite;(System.Object);summary;df-generated
|
||||
|
||||
Reference in New Issue
Block a user