[all-commits] [llvm/llvm-project] d19af2: [GWP-ASan] Crash handler API returns sizeof(collec...

Mitch Phillips via All-commits all-commits at lists.llvm.org
Mon Jul 27 10:54:21 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d19af2f2476b5e13a65d5283cce9859e2c1ef763
      https://github.com/llvm/llvm-project/commit/d19af2f2476b5e13a65d5283cce9859e2c1ef763
  Author: Mitch Phillips <31459023+hctim at users.noreply.github.com>
  Date:   2020-07-27 (Mon, 27 Jul 2020)

  Changed paths:
    M compiler-rt/lib/gwp_asan/common.cpp
    M compiler-rt/lib/gwp_asan/crash_handler.cpp
    M compiler-rt/lib/gwp_asan/tests/backtrace.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list