MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / get_fuzz_env

Function get_fuzz_env

test/fuzz/test_runner.py:19–30  ·  view source on GitHub ↗
(*, target, source_dir)

Source from the content-addressed store, hash-verified

17
18
19def get_fuzz_env(*, target, source_dir):
20 symbolizer = os.environ.get('LLVM_SYMBOLIZER_PATH', "/usr/bin/llvm-symbolizer")
21 fuzz_env = os.environ | {
22 'FUZZ': target,
23 'UBSAN_OPTIONS':
24 f'suppressions={source_dir}/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1',
25 'UBSAN_SYMBOLIZER_PATH': symbolizer,
26 "ASAN_OPTIONS": "detect_leaks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1",
27 'ASAN_SYMBOLIZER_PATH': symbolizer,
28 'MSAN_SYMBOLIZER_PATH': symbolizer,
29 }
30 return fuzz_env
31
32
33def main():

Callers 3

mainFunction · 0.85
jobFunction · 0.85
parse_test_listFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected