8000 Feature request: Setup and teardown functions · Issue #101 · rust-fuzz/cargo-fuzz · GitHub
[go: up one dir, main page]

Skip to content
Feature request: Setup and teardown functions #101
@hmvp

Description

@hmvp

Maybe I missed something in the docs But I'd like to request the following feature:

Add a function that will be called once before the fuzzing starts to set up stuff needed for fuzzing. Maybe with a method to pass that data as an argument to the fuzz function.

Two reasons:

  • Expensive setup means the fuzzer runs slower. I would have used lazy_static but it does not play nice with the sanitizer
  • Some setup is to cumbersome to do every test. I am currently fuzzing a program that accepts CAN packets and I need to setup a virtual can network beforehand. This would also need a teardown function.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0