The MaybeMountProcFS uses SanitizerToolName in its failure messages so we
need it defined at this point.
Change-Id: I6a568e1ebf3d646ecfbdb53fd8e48910e9b66559
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
static void AsanInitInternal() {
if (LIKELY(asan_inited)) return;
+ SanitizerToolName = "AddressSanitizer";
MaybeMountProcFS();
MaybeDisableUlimit();
- SanitizerToolName = "AddressSanitizer";
CHECK(!asan_init_is_running && "ASan init calls itself!");
asan_init_is_running = true;
CHECK(!lsan_init_is_running);
if (LIKELY(lsan_inited))
return;
+ SanitizerToolName = "LeakSanitizer";
MaybeMountProcFS();
lsan_init_is_running = true;
- SanitizerToolName = "LeakSanitizer";
CacheBinaryName();
InitializeFlags();
InitCommonLsan();