[all-commits] [llvm/llvm-project] 9d0161: [Asan] Fix false leak report

Vitaly Buka via All-commits all-commits at lists.llvm.org
Mon Sep 14 13:33:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d01612db48fa27d18c6320974b8d711572e5c67
      https://github.com/llvm/llvm-project/commit/9d01612db48fa27d18c6320974b8d711572e5c67
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2020-09-14 (Mon, 14 Sep 2020)

  Changed paths:
    M compiler-rt/lib/asan/asan_allocator.cpp
    A compiler-rt/test/asan/TestCases/redzone_noleak.cpp

  Log Message:
  -----------
  [Asan] Fix false leak report

If user thread is in the allocator, the allocator
may have no pointer into future user's part of
the allocated block. AddrIsInside ignores such
pointers and lsan reports a false memory leak.

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D87552




More information about the All-commits mailing list