Giter VIP home page Giter VIP logo

Comments (2)

jonathanmetzman avatar jonathanmetzman commented on August 15, 2024

Hi,

I am reading this https://google.github.io/fuzzbench/getting-started/adding-a-new-fuzzer/ to add AFLSmart (https://github.com/aflsmart/aflsmart) so it can be benchmarked using FuzzBench. However, AFLSmart supports a few more arguments, especially the one taking an input model (-g) to enable its structure-aware capability. I have two questions regarding this

  1. How to support this -g argument in FuzzBench?

If this argument were not target/benchmark specific do you think it's unclear from the docs how this can be done? (asking because I want to know if our docs need improvement)

  1. Since the input model is target program-specific. For example, LibPNG takes PNG input model, LibJpeg-turbo takes JPEG input model. As far as I understand, FuzzBench uses projects integrated into OSS-Fuzz for benchmarking so where should I store AFLSmart's input models and how to map them to the corresponding OSS-Fuzz projects?

I am thinking about a simple solution which could answer the above questions but I am not sure it is desirable. The solution is that I fix the -g argument with an input model, say "-g model.xml" and when I build a OSS-Fuzz project, I copy a corresponding input model to the working folder and rename it to model.xml.

That should work.
The other possibility is to infer which model to use from the BENCHMARK environment variable, when executing fuzz. I wouldn't say it's official API but I think relying on it is OK.

Does this help?

from fuzzbench.

thuanpv avatar thuanpv commented on August 15, 2024

Hi @jonathanmetzman,

Thank you for your reply. Your suggestions work. I have just sent a pull request (#84) for AFLSmart. I check the value of the BENCHMARK env. variable to decide which input model will be used. However, it works pretty well when the number of benchmarks is small, but it would be an issue when the benchmarks become large, especially when you consider different versions of a subject program as I see in another discussion. So I would like to see a new feature that can handle this in a more proper way. Fortunately, it seems that this feature is on the working list since I see Abhishek has marked my request as a "new feature" -- which is awesome!

Best regards,

Thuan

from fuzzbench.

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.