mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 06:00:27 +00:00
Don't run clang to link when fuzzing. (#6835)
The clang driver is too easy to crash with fuzzer-generated command lines, and it's not interesting to find those bugs.
This commit is contained in:
1 parent
bf6f21b8e9
commit
6a650941d2
1 file changed
+5
@@ -117,6 +117,11 @@ auto LinkSubcommand::Run(DriverEnv& driver_env) -> DriverResult {
|
||||
|
||||
ClangRunner runner(driver_env.installation, driver_env.fs,
|
||||
driver_env.vlog_stream);
|
||||
// Don't run Clang when fuzzing, it is known to not be reliable under fuzzing
|
||||
// due to many unfixed issues.
|
||||
if (TestAndDiagnoseIfFuzzingExternalLibraries(driver_env, "clang")) {
|
||||
return {.success = false};
|
||||
}
|
||||
ErrorOr<bool> run_result =
|
||||
driver_env.prebuilt_runtimes
|
||||
? runner.RunWithPrebuiltRuntimes(clang_args,
|
||||
|
||||
Reference in new issue
Block a user