aboutsummaryrefslogtreecommitdiff
path: root/fuzz/Jellyfin.Server.Fuzz/Program.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2023-10-22 17:01:51 +0200
committerGitHub <noreply@github.com>2023-10-22 09:01:51 -0600
commitb16033df03db7a6c3e3b3636c9eac4dad8e49f9d (patch)
tree1dc4bd20c2a28f13078040fd6036a65f2b615eb5 /fuzz/Jellyfin.Server.Fuzz/Program.cs
parent028b2122ce39ec54bcab78ffd252a41518231458 (diff)
Fix fuzz projects (#10416)
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 e47286c13..000000000
--- 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)));
- }
- }
-}