[all-commits] [llvm/llvm-project] 119146: [hwasan] do not check if freed pointer belonged to...

Florian Mayer via All-commits all-commits at lists.llvm.org
Fri Aug 20 02:13:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 119146f8ae25c31ea630a15761a6fba6b7eb909c
      https://github.com/llvm/llvm-project/commit/119146f8ae25c31ea630a15761a6fba6b7eb909c
  Author: Florian Mayer <fmayer at google.com>
  Date:   2021-08-20 (Fri, 20 Aug 2021)

  Changed paths:
    M compiler-rt/lib/hwasan/hwasan_allocator.cpp

  Log Message:
  -----------
  [hwasan] do not check if freed pointer belonged to allocator.

In that case it is very likely that there will be a tag mismatch anyway.

We handle the case that the pointer belongs to neither of the allocators
by getting a nullptr from allocator.GetBlockBegin.

Reviewed By: hctim, eugenis

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




More information about the All-commits mailing list