[all-commits] [llvm/llvm-project] 763926: [sanitizer] Implement __sanitizer_get_allocated_si...

Northbadge via All-commits all-commits at lists.llvm.org
Thu May 25 17:21:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7639265af4547c0330d5949f0da8f92e9b83f6b0
      https://github.com/llvm/llvm-project/commit/7639265af4547c0330d5949f0da8f92e9b83f6b0
  Author: Jin Xin Ng <njx at google.com>
  Date:   2023-05-26 (Fri, 26 May 2023)

  Changed paths:
    M compiler-rt/include/sanitizer/allocator_interface.h
    M compiler-rt/lib/asan/asan_allocator.cpp
    M compiler-rt/lib/dfsan/dfsan_allocator.cpp
    M compiler-rt/lib/hwasan/hwasan_allocator.cpp
    M compiler-rt/lib/lsan/lsan_allocator.cpp
    M compiler-rt/lib/memprof/memprof_allocator.cpp
    M compiler-rt/lib/msan/msan_allocator.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_allocator_interface.h
    M compiler-rt/lib/sanitizer_common/sanitizer_common_interface.inc
    M compiler-rt/lib/tsan/rtl/tsan_mman.cpp
    M compiler-rt/test/sanitizer_common/TestCases/Linux/malloc_usable_size.c
    M compiler-rt/test/sanitizer_common/TestCases/allocator_interface.cpp
    A compiler-rt/test/sanitizer_common/TestCases/malloc_hook_get_allocated_size_fast.cpp

  Log Message:
  -----------
  [sanitizer] Implement __sanitizer_get_allocated_size_fast

The primary motivation for this change is to allow FreeHooks to obtain
the allocated size of the pointer being freed in a fast, efficient manner.

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




More information about the All-commits mailing list