|
|
@ -23,10 +23,10 @@ def get_fuzz_env(*, target, source_dir):
|
|
|
|
'FUZZ': target,
|
|
|
|
'FUZZ': target,
|
|
|
|
'UBSAN_OPTIONS':
|
|
|
|
'UBSAN_OPTIONS':
|
|
|
|
f'suppressions={source_dir}/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1',
|
|
|
|
f'suppressions={source_dir}/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1',
|
|
|
|
'UBSAN_SYMBOLIZER_PATH':symbolizer,
|
|
|
|
'UBSAN_SYMBOLIZER_PATH': symbolizer,
|
|
|
|
"ASAN_OPTIONS": "detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1",
|
|
|
|
"ASAN_OPTIONS": "detect_leaks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1",
|
|
|
|
'ASAN_SYMBOLIZER_PATH':symbolizer,
|
|
|
|
'ASAN_SYMBOLIZER_PATH': symbolizer,
|
|
|
|
'MSAN_SYMBOLIZER_PATH':symbolizer,
|
|
|
|
'MSAN_SYMBOLIZER_PATH': symbolizer,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if platform.system() == "Windows":
|
|
|
|
if platform.system() == "Windows":
|
|
|
|
# On Windows, `env` option must include valid `SystemRoot`.
|
|
|
|
# On Windows, `env` option must include valid `SystemRoot`.
|
|
|
|