[all-commits] [llvm/llvm-project] 681c2e: asan: refactor interceptor allocation/deallocation...

Justin King via All-commits all-commits at lists.llvm.org
Tue Jul 22 15:47:44 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 681c2ee4dfbf10b3ef74afd1a2c72f844771e602
      https://github.com/llvm/llvm-project/commit/681c2ee4dfbf10b3ef74afd1a2c72f844771e602
  Author: Justin King <jcking at google.com>
  Date:   2025-07-22 (Tue, 22 Jul 2025)

  Changed paths:
    M compiler-rt/lib/asan/asan_allocator.cpp
    M compiler-rt/lib/asan/asan_allocator.h
    M compiler-rt/lib/asan/asan_mac.cpp
    M compiler-rt/lib/asan/asan_malloc_linux.cpp
    M compiler-rt/lib/asan/asan_malloc_mac.cpp
    M compiler-rt/lib/asan/asan_malloc_win.cpp
    M compiler-rt/lib/asan/asan_new_delete.cpp
    M compiler-rt/lib/asan/tests/asan_noinst_test.cpp

  Log Message:
  -----------
  asan: refactor interceptor allocation/deallocation functions (#145087)

Do some refactoring to allocation/deallocation interceptors. Expose
explicit per-alloc_type functions and stop accepting explicit AllocType.
This ensures we do not accidentally mix.

NOTE: This change rejects attempts to call `operator new(<some_size>,
static_cast<std::align_val_t>(0))`.

For https://github.com/llvm/llvm-project/issues/144435

Signed-off-by: Justin King <jcking at google.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list