2
0

FuzzerSanitizerOptions.cpp 836 B

1234567891011121314151617181920
  1. //===- FuzzerSanitizerOptions.cpp - default flags for sanitizers ----------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. // Set default options for sanitizers while running the fuzzer.
  10. // Options reside in a separate file, so if we don't want to set the default
  11. // options we simply do not link this file in.
  12. // ASAN options:
  13. // * don't dump the coverage to disk.
  14. // * enable coverage by default.
  15. // * enable handle_abort.
  16. //===----------------------------------------------------------------------===//
  17. extern "C" const char *__asan_default_options() {
  18. return "coverage_pcs=0:coverage=1:handle_abort=1";
  19. }