mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-19 15:22:15 +08:00
7a04a4b396
- Add a solution to provide fuzzer support for afl-fuzz and libfuzzer. - Add fuzz targets for Binary, Json and Xml encoder and decoder fuzzing. For afl-fuzz and libfuzzer. - Fix issues in encoders and decoders when unexpected exceptions are returned. The expectation is to return only ServiceResultException with BadDecodingError, BadEncodingError or BadEncodingLimitsExceeded. - Add a tool to create Testcases. - Add a tool to playback crashes and timeouts. - Solution is extensible with common files to discover new fuzz targets by reflection. New fuzz projects can share many files with the first project. - Breaking change: Fix how BinaryDecoder is used: Previously, calling close on the BinaryDecoder implicitly disposed the stream. Change behavior so that `using` pattern can be applied across the board.
18 lines
357 B
Bash
18 lines
357 B
Bash
#/bin/sh
|
|
set -eux
|
|
|
|
# Download and extract the latest afl-fuzz source package
|
|
wget http://lcamtuf.coredump.cx/afl/releases/afl-latest.tgz
|
|
tar -xvf afl-latest.tgz
|
|
|
|
rm afl-latest.tgz
|
|
cd afl-2.52b/
|
|
|
|
# Install afl-fuzz
|
|
sudo make install
|
|
cd ..
|
|
rm -rf afl-2.52b/
|
|
|
|
# Install SharpFuzz.CommandLine global .NET tool
|
|
dotnet tool install --global SharpFuzz.CommandLine
|