blob: b3353e88856b60dac3dde76ecaab814b7b343139 [file] [log] [blame] [view]
aizatsky9c8c5b02016-03-30 22:09:091# libFuzzer Integration Reference
aizatsky88a677d2016-03-18 23:18:242
Max Moroz9b370752018-03-20 22:05:323## Additional Sanitizer Configuration
Oliver Changd6ead472017-10-02 19:50:344
5### MSan
6
Jonathan Metzman15e88e72018-11-16 19:40:137Memory Sanitizer (MSan) in Chromium only supports Ubuntu Precise/Trusty and not
8Rodete.
9Thus, our [reproduce tool] cannot reproduce bugs found using MSan.
10You can try to reproduce them manually by using [these instructions] on how to
11run MSan-instrumented code in docker.
Oliver Changd6ead472017-10-02 19:50:3412
13### UBSan
14
Abhishek Arya9e4a72c2017-11-29 16:23:3315By default, UBSan does not crash when undefined behavior is detected.
16To make it crash, the following option needs to be set in environment:
Oliver Changd6ead472017-10-02 19:50:3417```bash
18UBSAN_OPTIONS=halt_on_error=1 ./fuzzer <corpus_directory_or_single_testcase_path>
Oliver Changd6ead472017-10-02 19:50:3419```
Abhishek Arya9e4a72c2017-11-29 16:23:3320Other useful options are (also used by ClusterFuzz):
Oliver Changd6ead472017-10-02 19:50:34