mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:40:10 +01:00
The `FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION` flag is a standard flag proposed by LibFuzzer that is meant to inform compiled code that it is being built for fuzzing, as described here: https://llvm.org/docs/LibFuzzer.html#fuzzer-friendly-build-mode We add the flag to our `fuzzing` feature/config, and enable DCHECKs when under fuzzing so that we can catch bugs that currently are caught on the other side of DCHECK, even if they don't cause ASAN to trap a read/write beyond the capacity of a value store.