C#: Add example of missing sink generation.

This commit is contained in:
Michael Nebel
2024-08-13 16:59:43 +02:00
parent a782952969
commit 6f79480b40
2 changed files with 16 additions and 0 deletions

View File

@@ -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