In addition:
- optionally add global flag to capture compile intent for UAR: __asan_detect_use_after_return_always. The global is a SANITIZER_WEAK_ATTRIBUTE.
- Add to weak_symbols.txt. (fixes breakage on macOS)
Paths
| Differential D103713
Update and improve compiler-rt tests for -mllvm -asan_use_after_return=(never|[runtime]|always). AbandonedPublic Authored by kda on Jun 4 2021, 12:57 PM.
Details
Summary In addition:
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 4 2021, 12:57 PM Comment Actions Can we reuse the old https://reviews.llvm.org/D103304? It will make it easier to see the patch history. You may have to reopen the patch in order to push new diffs.
Revision Contents
Diff 349950 compiler-rt/lib/asan/asan_interface.inc
compiler-rt/lib/asan/asan_rtl.cpp
compiler-rt/lib/asan/weak_symbols.txt
compiler-rt/test/asan/TestCases/Linux/uar_signals.cpp
compiler-rt/test/asan/TestCases/Posix/stack-use-after-return.cpp
compiler-rt/test/asan/TestCases/Windows/dll_stack_use_after_return.cpp
compiler-rt/test/asan/TestCases/Windows/stack_use_after_return.cpp
compiler-rt/test/asan/TestCases/heavy_uar_test.cpp
compiler-rt/test/asan/TestCases/pass-struct-byval-uar.cpp
compiler-rt/test/asan/TestCases/scariness_score_test.cpp
compiler-rt/test/asan/TestCases/uar_and_exceptions.cpp
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/test/Instrumentation/AddressSanitizer/fake-stack.ll
|
clang-tidy: error: unknown type name 'INTERFACE_FUNCTION' [clang-diagnostic-error]
not useful
clang-tidy: error: expected ';' after top level declarator [clang-diagnostic-error]
not useful