aboutsummaryrefslogtreecommitdiff
path: root/fuzz/Emby.Server.Implementations.Fuzz/fuzz.sh
blob: aa2a34cddecaa4b7832bb4b9117baa3158cf3f5f (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

set -e

dotnet build -c Release ../../Emby.Server.Implementations/Emby.Server.Implementations.csproj --output bin
sharpfuzz bin/Emby.Server.Implementations.dll
cp bin/Emby.Server.Implementations.dll .

dotnet build
mkdir -p Findings
AFL_SKIP_BIN_CHECK=1 afl-fuzz -i "Testcases/$1" -o "Findings/$1" -t 5000 ./bin/Debug/net7.0/Emby.Server.Implementations.Fuzz "$1"