aboutsummaryrefslogtreecommitdiff
path: root/fuzz/Jellyfin.Server.Fuzz/Program.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2023-11-09 22:03:55 -0700
committerGitHub <noreply@github.com>2023-11-09 22:03:55 -0700
commit892973a9e372000ad7babe2381e4e83b39591951 (patch)
treefc408136c09e6377309629ad6b2d4b2b26ff3c3f /fuzz/Jellyfin.Server.Fuzz/Program.cs
parent35bd0c00c965176d6ddb167605ed3a3eba9a4524 (diff)
parent44b771bfb4b6412360b18c80621c90902c0a43a7 (diff)
Merge branch 'master' into media-type
Diffstat (limited to 'fuzz/Jellyfin.Server.Fuzz/Program.cs')
-rw-r--r--fuzz/Jellyfin.Server.Fuzz/Program.cs33
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)));
- }
- }
-}