Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
compiler-rt/lib/asan/asan_flags.cc
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | SetCommonFlagsDefaults(); | ||||
cf.external_symbolizer_path = GetEnv("ASAN_SYMBOLIZER_PATH"); | cf.external_symbolizer_path = GetEnv("ASAN_SYMBOLIZER_PATH"); | ||||
cf.malloc_context_size = kDefaultMallocContextSize; | cf.malloc_context_size = kDefaultMallocContextSize; | ||||
cf.intercept_tls_get_addr = true; | cf.intercept_tls_get_addr = true; | ||||
cf.exitcode = 1; | cf.exitcode = 1; | ||||
OverrideCommonFlags(cf); | OverrideCommonFlags(cf); | ||||
} | } | ||||
Flags *f = flags(); | Flags *f = flags(); | ||||
f->SetDefaults(); | f->SetDefaults(); | ||||
if (f->redzone < (int)SHADOW_GRANULARITY) | |||||
f->redzone = SHADOW_GRANULARITY; | |||||
FlagParser asan_parser; | FlagParser asan_parser; | ||||
RegisterAsanFlags(&asan_parser, f); | RegisterAsanFlags(&asan_parser, f); | ||||
RegisterCommonFlags(&asan_parser); | RegisterCommonFlags(&asan_parser); | ||||
// Set the default values and prepare for parsing LSan and UBSan flags | // Set the default values and prepare for parsing LSan and UBSan flags | ||||
// (which can also overwrite common flags). | // (which can also overwrite common flags). | ||||
#if CAN_SANITIZE_LEAKS | #if CAN_SANITIZE_LEAKS | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |