llvm-capstone/compiler-rt
Kuba Mracek 32bada2eda [lsan] Fix stack buffer overwrite in SuspendedThreadsListMac::GetRegistersAndSP
The call to the thread_get_state syscall (that fetches the register values for a thread) on arm64 is mistakenly claiming that the buffer to receive the register state is larger that its actual size on the stack -- the struct on the stack is arm_thread_state64_t, but the MACHINE_THREAD_STATE + MACHINE_THREAD_STATE_COUNT refer to the "unified arm state" struct (which is larger).

Fixes https://github.com/llvm/llvm-project/issues/58503.

Differential Revision: https://reviews.llvm.org/D137292
2022-11-12 10:17:52 -08:00
..
cmake [clang] Only use major version in resource dir 2022-11-10 15:02:03 +01:00
docs Revert "[cmake] Use CMAKE_INSTALL_LIBDIR too" 2022-08-18 22:46:32 -04:00
include [memprof] Respect COMPILER_RT_BUILD_MEMPROF when install memprof headers 2022-10-25 09:35:22 +08:00
lib [lsan] Fix stack buffer overwrite in SuspendedThreadsListMac::GetRegistersAndSP 2022-11-12 10:17:52 -08:00
test [fuzzer][test] Add #include <cstdint> for gcc-13 2022-11-10 13:44:11 +08:00
tools [GWP-ASan] Add inbuilt options parser. 2021-01-15 12:57:05 -08:00
unittests [Sanitizer][Darwin] Cleanup MaybeReexec() function and usage 2022-07-08 14:31:42 -07:00
utils [compiler-rt] NFC: Fix trivial typo 2021-09-04 14:12:58 +05:30
www Remove references to old mailing lists that have moved to discourse. Replace with links to discourse. 2022-07-22 09:59:03 -07:00
.clang-tidy NFC: .clang-tidy: Inherit configs from parents to improve maintainability 2021-06-08 08:25:59 -07:00
.gitignore
CMakeLists.txt cmake: Fix build with -DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON 2022-11-09 17:00:08 -08:00
CODE_OWNERS.TXT [docs] Update compiler-rt/CODE_OWNERS.TXT 2022-10-19 17:28:48 -07:00
CREDITS.TXT
LICENSE.TXT
README.txt

Compiler-RT
================================

This directory and its subdirectories contain source code for the compiler
support routines.

Compiler-RT is open source software. You may freely distribute it under the
terms of the license agreement found in LICENSE.txt.

================================