diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-06-14 19:30:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-14 19:30:05 +0200 |
| commit | cd36b8067fcf80c5ebb47bdd9bea0047d1fe3aef (patch) | |
| tree | b6bd280adfa34931bb47a6d10eb9ddd0bca3b3e3 /fuzz/Emby.Server.Implementations.Fuzz/fuzz.sh | |
| parent | aaa9cc604f5cd3a2869259a9b0c404d0330195fd (diff) | |
| parent | f7392394fdcf882c97199d35a65647f201f3129e (diff) | |
Merge pull request #5988 from Bond-009/fuzz
Add fuzzing infrastructure
Diffstat (limited to 'fuzz/Emby.Server.Implementations.Fuzz/fuzz.sh')
| -rwxr-xr-x | fuzz/Emby.Server.Implementations.Fuzz/fuzz.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fuzz/Emby.Server.Implementations.Fuzz/fuzz.sh b/fuzz/Emby.Server.Implementations.Fuzz/fuzz.sh new file mode 100755 index 000000000..244f73402 --- /dev/null +++ b/fuzz/Emby.Server.Implementations.Fuzz/fuzz.sh @@ -0,0 +1,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 -m 10240 dotnet bin/Debug/net5.0/Emby.Server.Implementations.Fuzz.dll "$1" |
