Commit 160c5986 authored by robert.bradford's avatar robert.bradford Committed by Commit bot

libfuzzer: add documentation recommending how to silence error logging

TEST=Using local md_browser.py check documentation formatting is
correct.
BUG=none

Review-Url: https://codereview.chromium.org/2290223003
Cr-Commit-Position: refs/heads/master@{#415330}
parent e7cc53ef
......@@ -104,6 +104,24 @@ You can specify custom `max_len` value to be used by ClusterFuzz. For more
information check out [Maximum Testcase Length] section of the [Efficient Fuzzer
Guide].
## Disable noisy error message logging
If the code that you are a fuzzing generates error messages when encountering
incorrect or invalid data then you need to silence those errors in the fuzzer.
If the target uses the Chromium logging APIs, the best way to do that is to
override the environment used for logging in your fuzzer:
```cpp
struct Environment {
Environment() {
logging::SetMinLogLevel(logging::LOG_FATAL);
}
};
Environment* env = new Environment();
```
## Submitting Fuzzer to ClusterFuzz
ClusterFuzz builds and executes all `fuzzer_test` targets in the source tree.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment