[all-commits] [llvm/llvm-project] fd0aa7: [sanitizer] use the right type for sizeof for inte...

Wu Yingcong via All-commits all-commits at lists.llvm.org
Sun Jul 23 20:12:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd0aa70528e425fe192d3eb0c5c1e32b4b1ccbf5
      https://github.com/llvm/llvm-project/commit/fd0aa70528e425fe192d3eb0c5c1e32b4b1ccbf5
  Author: Wu, Yingcong <yingcong.wu at intel.com>
  Date:   2023-07-23 (Sun, 23 Jul 2023)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc

  Log Message:
  -----------
  [sanitizer] use the right type for sizeof for interceptor hook

`PRE_READ` is called with a pointer and the size of the object
the pointer points to. But there is one line of code not calling
`PRE_READ` correctly(likely missing a dereference).
This patch fixes the problem.

Reviewed By: MaskRay

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




More information about the All-commits mailing list