[sanitizer] use the right type for sizeof for interceptor hook
authorWu, Yingcong <yingcong.wu@intel.com>
Mon, 24 Jul 2023 03:12:39 +0000 (20:12 -0700)
committerFangrui Song <i@maskray.me>
Mon, 24 Jul 2023 03:12:39 +0000 (20:12 -0700)
commitfd0aa70528e425fe192d3eb0c5c1e32b4b1ccbf5
treee51f1ef43e525ad5c4a21f75b2de48610369849d
parentf375ee36c4e1c87b8ed47ef44d3613bd5756f57a
[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
compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc