Git Product home page Git Product logo

Comments (6)

oliverchang avatar oliverchang commented on May 1, 2024

@jonathanmetzman can you help answer this?

from clusterfuzzlite.

jonathanmetzman avatar jonathanmetzman commented on May 1, 2024

Hi, first of all thanks for all the awesome work you've put into this project really appreciate it.

No problem!

For several of my fuzzers I've created dictionaries and/or have large number of sample files which I obviously would like the fuzzers to take advantage of.

I've looked through the documentation here but was not able to find the answers there so maybe someone here can help me.

Good point we should document this.
Basically you need to put the dictionary/seed corpus (zip containing sample files) next to your fuzzers.
For example: if youre fuzzer is called png_parser_fuzzer, your $OUT directory should look like this:

png_parser_fuzzer
png_parser_fuzzer_seed_corpus.zip
png_parser_fuzzer.dict

from clusterfuzzlite.

AMS21 avatar AMS21 commented on May 1, 2024

Thanks for the quick response. That's exactly what I was looking for.

Keeping this issue open to track the missing documentation then.

from clusterfuzzlite.

securitykernel avatar securitykernel commented on May 1, 2024

This is both already documented in OSS-Fuzz's New project guide > Efficient fuzzing section, which ClusterFuzzLite's docs link to from Build integration > Efficient fuzzing, so I think this issue can be closed. This is probably due to the code base being the same for OSS-Fuzz and CFL in this regard.

To provide a corpus for my_fuzzer, put my_fuzzer_seed_corpus.zip file next to the fuzz target’s binary in $OUT during the build.
...
Put your dict file in $OUT. If the dict filename is the same as your target binary name (i.e. %fuzz_target%.dict), it will be automatically used.

I too, sometimes find it hard to find the right information from the docs due to the similarities between OSS-Fuzz and ClusterFuzzLite, but I don't think this is easy to overcome. For example, searching for dictionary or seed on the CFL docs gives no useful results. Maybe in the efficient fuzzing section, we could change:

To improve your fuzz target ability to find bugs faster, please read this section.

to:

To improve your fuzz target ability to find bugs faster, e.g., by providing a seed corpus or dictionaries, please read this section.

from clusterfuzzlite.

AMS21 avatar AMS21 commented on May 1, 2024

Good point. I agree

from clusterfuzzlite.

jonathanmetzman avatar jonathanmetzman commented on May 1, 2024

I think this info should be more front and center though.

from clusterfuzzlite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.