[all-commits] [llvm/llvm-project] 58c2a4: [scudo] Add hooks to mark the range of realloc (#7...

ChiaHungDuan via All-commits all-commits at lists.llvm.org
Thu Dec 7 13:49:19 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 58c2a4e806b2882c0622cbded923b32f94c5b47b
      https://github.com/llvm/llvm-project/commit/58c2a4e806b2882c0622cbded923b32f94c5b47b
  Author: ChiaHungDuan <chiahungduan at google.com>
  Date:   2023-12-07 (Thu, 07 Dec 2023)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/include/scudo/interface.h
    M compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp
    M compiler-rt/lib/scudo/standalone/wrappers_c.inc

  Log Message:
  -----------
  [scudo] Add hooks to mark the range of realloc (#74353)

`realloc` may involve both allocation and deallocation. Given that the
reporting the events is not atomic and which may lead the hook user to a
false case that the double-use pattern happens. In general, this can be
resolved on the hook side. To alleviate the task of handling it, we add
two new hooks to mark the range so that the hook user can combine those
calls together.




More information about the All-commits mailing list