Replies: 3 comments
-
|
@mirusu400 You could take a look at how it is done in OSS-fuzz here |
Beta Was this translation helpful? Give feedback.
-
|
@MiguelCompany I already checked dockerfile and yaml files, and now I also can run AFL always takes stdin as an input, but the code doesn't have |
Beta Was this translation helpful? Give feedback.
-
|
For AFL++, you do not need to rewrite the harness to read stdin. These are libFuzzer-style targets, so build them with AFL++'s libFuzzer compatibility driver. The short version is: afl-clang-fast++ -o fuzz_XMLProfiles \
fuzz_XMLProfiles.cxx fuzz_utils.cxx \
/path/to/libAFLDriver.a \
...same Fast-DDS libs...
afl-fuzz -i fuzz_XMLProfiles_seed_corpus -o out -- ./fuzz_XMLProfiles @@AFL++ also supports For the two runtime failures, they look like separate harness issues rather than LLVM 17 being wrong:
So I would first make both targets deterministic for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I'm trying to run AFL (or libfuzzer) and fuzzing given harnesses in
fuzz/C++/fuzz_process....I'm trying to build and running fuzzer locally, but It doesn't work than I thought.
On fuzz_XMLProfiles
Using AFL, I cannot get stdin and serve stdin into
LLVMFuzzerTestOneInput.Using libfuzzer, I have an error with this log:
On fuzz_processCDRMsg
Using AFL, I cannot get stdin and serve stdin into
LLVMFuzzerTestOneInput.Using libfuzzer, I got and error:
I have three questions.
Is there any documentation about fuzzing FastDDS locally? I cannot found any documentation or issue / discussions in FastDDS repo.
In AFL, how can I serve stdin into
LLVMFuzzerTestOneInputharness?Why my libfuzzer doesn't work properly in my environment? I'm using clang/llvm 17, am I do something wrong?
Beta Was this translation helpful? Give feedback.
All reactions