Skip to content

Commit

Permalink
Document that the user shouldn't set up their own panic hook
Browse files Browse the repository at this point in the history
The fuzzer has its own panic hook, which is useful when
not using `-C panic=abort`.
  • Loading branch information
g2p committed Jun 9, 2018
1 parent 85f75d6 commit ddceba9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -175,6 +175,7 @@ For instance:
- Never ever call `std::process::exit()`.
- Disable logging and other unnecessary functionnalities.
- Try to avoid modifying global state when possible.
- Do not set up your own panic hook when run with `cfg(fuzzing)`


When building with `cargo hfuzz`, the argument `--cfg fuzzing` is passed to `rustc` to allow you to condition the compilation of thoses adaptations thanks to the `cfg` macro like so:
Expand Down

0 comments on commit ddceba9

Please sign in to comment.