[compiler-rt] [ASan][Windows] Honor asan config flags on windows when set through the user function (PR #122990)
David Justo via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 10:17:53 PDT 2025
================
@@ -460,6 +492,13 @@ static bool AsanInitInternal() {
allocator_options.SetFrom(flags(), common_flags());
InitializeAllocator(allocator_options);
+ // Apply ASan flags.
+ // NOTE: In order for options specified through `__asan_default_options` to be
+ // honored on Windows, it is necessary for those options to be configured
+ // inside the `ApplyOptions` method. See the function-level comment for
+ // `ApplyFlags` for more details.
+ ApplyFlags();
----------------
davidmrdavid wrote:
I scoped out the change to `__sanitizer_set_report_path` here -> https://github.com/llvm/llvm-project/pull/122990/commits/a449ffa5a0b9505c21265034a0224f46e1a64943
@vitalybuka please let me know if that seems safer to you. Thanks!
https://github.com/llvm/llvm-project/pull/122990
More information about the llvm-commits
mailing list