diff options
| author | Pithaya <19533412+Pithaya@users.noreply.github.com> | 2023-11-13 18:07:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-13 18:07:23 +0100 |
| commit | eb2bcc91c5e8182bddf1ab5d6ee2a951da66e9c6 (patch) | |
| tree | 97bf08a7c3f3ebae72c0c89ffccd2917fad3cb2c /fuzz/Jellyfin.Server.Fuzz/Program.cs | |
| parent | 948a67cfeb1aa045099c4486da4eb1fd459a676f (diff) | |
| parent | ea546230586a00a75db5c379db904e47cbbf270b (diff) | |
Merge branch 'master' into feat/book-persons
Diffstat (limited to 'fuzz/Jellyfin.Server.Fuzz/Program.cs')
| -rw-r--r-- | fuzz/Jellyfin.Server.Fuzz/Program.cs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/fuzz/Jellyfin.Server.Fuzz/Program.cs b/fuzz/Jellyfin.Server.Fuzz/Program.cs deleted file mode 100644 index e47286c131..0000000000 --- a/fuzz/Jellyfin.Server.Fuzz/Program.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Collections.Generic; -using Jellyfin.Server.Middleware; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Http.Features; -using Microsoft.Extensions.Primitives; -using SharpFuzz; - -namespace Emby.Server.Implementations.Fuzz -{ - public static class Program - { - public static void Main(string[] args) - { - switch (args[0]) - { - case "UrlDecodeQueryFeature": Run(UrlDecodeQueryFeature); return; - default: throw new ArgumentException($"Unknown fuzzing function: {args[0]}"); - } - } - - private static void Run(Action<string> action) => Fuzzer.OutOfProcess.Run(action); - - private static void UrlDecodeQueryFeature(string data) - { - var dict = new Dictionary<string, StringValues> - { - { data, StringValues.Empty } - }; - _ = new UrlDecodeQueryFeature(new QueryFeature(new QueryCollection(dict))); - } - } -} |
