Comments (4)
Turns out that the original problem I was trying to solve was caused by calling instrumented code outside Fuzzer.Run
.
Sorry for wasting your time.
from sharpfuzz.
You should actually have two projects: one that you will instrument with sharpfuzz (class library where you would put the Repro function from your example), and the other one that will reference the instrumented assembly (console application that will run Fuzzer.Run function). The console app will be the target when running afl-fuzz.
from sharpfuzz.
Yes, for my project that's how I did it and ran into this crash.
While reducing this case I found that I get the same crash even when it's just one project.
So splitting it up (while more correct) still causes this crash for me.
from sharpfuzz.
Single project will always crash. Two projects is the only way that fuzzing will work. In your case, two projects probably crashed because of some other reason. One possible reason is that your initial case was starting with byte 97: if your initial test cases are crashing the program, fuzzer will stop (test cases must always run without exceptions).
I've created two separate projects to try to reproduce your bug. They are in the attached archive, and you can run them by extracting the archive and executing the following script:
cd Runner
dotnet build
sharpfuzz bin/Debug/netcoreapp2.2/Target.dll
afl-fuzz -i testcases/ -o findings dotnet bin/Debug/netcoreapp2.2/Runner.dll
And everything should work as expected.
One additional thing to keep in mind is that you should always consume the whole input stream (I know that this was just a toy example, but I just want to make sure that you are aware of that).
from sharpfuzz.
Related Issues (20)
- Fork server handshake failed issue on Jil.dll HOT 4
- afl-showmap - No instrumentation detected HOT 3
- Run sharpfuzz with function contained yield return failed HOT 1
- Use AFL++ instead of AFL HOT 1
- Timeout proccesing HOT 4
- Windows support HOT 5
- Publish new release with LibFuzzer updates HOT 1
- Question about excuting action sharpfuzz/src/SharpFuzz/Fuzzer.LibFuzzer.cs HOT 1
- Question regarding plans for SharpFuzz with libFuzzer on macOS HOT 2
- Test .net Application Console program HOT 1
- No instrumentation detected issue on Jil.dll HOT 5
- Parallel fuzzing with libfuzzer on windows
- Fork server handshake failed HOT 3
- AccessViolationException in class constructors HOT 3
- document hidden env variables and features HOT 3
- After installing sharpfuzz: "sharpfuzz: command not found"
- AFL failed to run: "No instrumentation detected" HOT 3
- Fuzzer hangs without logs.
- I'm curious about how SharpFuzz measures coverage HOT 1
- "Error Calculating Max stack value."
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharpfuzz.