llvm-project/compiler-rt/lib/gwp_asan
Mitch Phillips d19af2f247 [GWP-ASan] Crash handler API returns sizeof(collected trace)
Summary:
Fix up a slight bug with the crash handler API, where we say that we
return the size of the collected trace (instead of the size of the trace
that's returned) when the return buffer is too small, and the result is
truncated.

Also, as a result, patch up a small uninitialized memory bug.

Reviewers: morehouse, eugenis

Reviewed By: eugenis

Subscribers: #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D84652
2020-07-27 10:51:55 -07:00
..
optional [GWP-ASan] Fix uninitialized memory use in sigaction. 2020-07-27 05:53:27 -07:00
platform_specific [GWP-ASan] Fix thread ID. 2020-03-05 10:28:09 -08:00
scripts [GWP-ASan] Add public-facing documentation [6]. 2019-08-21 17:53:51 +00:00
tests [GWP-ASan] Crash handler API returns sizeof(collected trace) 2020-07-27 10:51:55 -07:00
CMakeLists.txt [GWP-ASan] Split the unwinder into segv/non-segv. 2020-07-21 08:25:37 -07:00
common.cpp [GWP-ASan] Crash handler API returns sizeof(collected trace) 2020-07-27 10:51:55 -07:00
common.h [GWP-ASan] Crash Handler API. 2020-02-05 15:39:17 -08:00
crash_handler.cpp [GWP-ASan] Crash handler API returns sizeof(collected trace) 2020-07-27 10:51:55 -07:00
crash_handler.h [GWP-ASan] Fix unused variables from crash handler + clang-format 2020-02-05 17:31:32 -08:00
definitions.h [GWP-ASan] Use weak abort message definition. 2020-02-06 10:36:25 -08:00
guarded_pool_allocator.cpp [GWP-ASan] Update alignment on Android. 2020-02-12 15:24:58 -08:00
guarded_pool_allocator.h [GWP-ASan] Update alignment on Android. 2020-02-12 15:24:58 -08:00
mutex.h [GWP-ASan] Mutex implementation [2]. 2019-05-30 19:45:32 +00:00
options.h [GWP-ASan] Crash Handler API. 2020-02-05 15:39:17 -08:00
options.inc [GWP-ASan] Update alignment on Android. 2020-02-12 15:24:58 -08:00
random.cpp [GWP-ASan] Fix PRNG to use IE TLS. 2020-02-06 10:08:23 -08:00
random.h [GWP-ASan] Fix PRNG to use IE TLS. 2020-02-06 10:08:23 -08:00
stack_trace_compressor.cpp [GWP-ASan] Implement stack frame compression. 2019-08-15 21:09:09 +00:00
stack_trace_compressor.h [GWP-ASan] Implement stack frame compression. 2019-08-15 21:09:09 +00:00
utilities.h [GWP-ASan] Update alignment on Android. 2020-02-12 15:24:58 -08:00