Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
compiler-rt/lib/asan/asan_rtl.cc
Show First 20 Lines • Show All 401 Lines • ▼ Show 20 Lines | static void AsanInitInternal() { | ||||
__asan_option_detect_stack_use_after_return = | __asan_option_detect_stack_use_after_return = | ||||
flags()->detect_stack_use_after_return; | flags()->detect_stack_use_after_return; | ||||
// Re-exec ourselves if we need to set additional env or command line args. | // Re-exec ourselves if we need to set additional env or command line args. | ||||
MaybeReexec(); | MaybeReexec(); | ||||
// Setup internal allocator callback. | // Setup internal allocator callback. | ||||
SetLowLevelAllocateMinAlignment(SHADOW_GRANULARITY); | |||||
SetLowLevelAllocateCallback(OnLowLevelAllocate); | SetLowLevelAllocateCallback(OnLowLevelAllocate); | ||||
alekseyshl: Swap the Set.. calls, set the min alignment first. | |||||
InitializeAsanInterceptors(); | InitializeAsanInterceptors(); | ||||
// Enable system log ("adb logcat") on Android. | // Enable system log ("adb logcat") on Android. | ||||
// Doing this before interceptors are initialized crashes in: | // Doing this before interceptors are initialized crashes in: | ||||
// AsanInitInternal -> android_log_write -> __interceptor_strcmp | // AsanInitInternal -> android_log_write -> __interceptor_strcmp | ||||
AndroidLogInit(); | AndroidLogInit(); | ||||
ReplaceSystemMalloc(); | ReplaceSystemMalloc(); | ||||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |
Swap the Set.. calls, set the min alignment first.