Skip to content

Commit

Permalink
added uninstrumented dlls (#40)
Browse files Browse the repository at this point in the history
Co-authored-by: Farida Gaifutdinova <[email protected]>
  • Loading branch information
gfarida and Farida Gaifutdinova authored Mar 27, 2023
1 parent ba8a0ac commit a2fcc64
Show file tree
Hide file tree
Showing 91 changed files with 16 additions and 1,306 deletions.
Empty file modified Examples/Crusher/Linux/csharp/fuzz-file.sh
100644 → 100755
Empty file.
Empty file modified Examples/Crusher/Linux/csharp/fuzz-stdin.sh
100644 → 100755
Empty file.
16 changes: 10 additions & 6 deletions Examples/Crusher/Linux/csharp/instrument.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@ fi

DOTNET=$1

echo "install SharpFuzz.CommandLine global .NET tool"
echo "installing SharpFuzz.CommandLine .NET tool..."

$DOTNET tool install --global SharpFuzz.CommandLine
if [ -f "sharpfuzz" ]; then
$DOTNET tool uninstall SharpFuzz.CommandLine --tool-path .
fi

$DOTNET tool install SharpFuzz.CommandLine --version 2.0.0 --tool-path .

echo "instrument dll"
echo "instrumenting dlls..."

sharpfuzz ./target/AngleSharp.Fuzz/AngleSharp.dll
sharpfuzz ./target/AngleSharp.Fuzz.File/AngleSharp.dll
./sharpfuzz ./target/AngleSharp.Fuzz/AngleSharp.dll
./sharpfuzz ./target/AngleSharp.Fuzz.File/AngleSharp.dll

echo "add SharpFuzz package"
echo "adding SharpFuzz package..."

cd ./target/AngleSharp.Fuzz
$DOTNET add package SharpFuzz --version 1.6.2
Expand Down
Binary file modified Examples/Crusher/Linux/csharp/target/AngleSharp.Fuzz.File/AngleSharp.dll
100644 → 100755
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using AngleSharp.Parser.Html;
using AngleSharp.Html.Parser;
using AngleSharp;
using SharpFuzz;

Expand All @@ -13,9 +13,8 @@ public static void Main(string[] args)
{
try
{
// new HtmlParser().Parse(stream);
var html = File.ReadAllText(args[0]);
new HtmlParser().Parse(html);
new HtmlParser().ParseDocument(html);
}
catch (InvalidOperationException) { }
});
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Empty file.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Empty file.
Loading

0 comments on commit a2fcc64

Please sign in to comment.