Index: testing/libfuzzer/getting_started.md |
diff --git a/testing/libfuzzer/getting_started.md b/testing/libfuzzer/getting_started.md |
index cfe1ab25aa46f2a811c1c5f31da03e170d12dbd2..625097885a2933148980d6138b84fc9d0926b54c 100644 |
--- a/testing/libfuzzer/getting_started.md |
+++ b/testing/libfuzzer/getting_started.md |
@@ -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. |