diff options
author | lizhiguang <zhig19860@gmail.com> | 2023-04-12 10:47:28 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2023-04-12 10:50:04 -0700 |
commit | 99ab3d9861bccdd14b08968fc2bb4f3f766cb382 (patch) | |
tree | 094fa7630fb1b7e3d1eebb11beb09e0c69db36e2 /compiler-rt | |
parent | d945b6496ec6604f692804d501fc96583069d432 (diff) | |
download | llvm-99ab3d9861bccdd14b08968fc2bb4f3f766cb382.zip llvm-99ab3d9861bccdd14b08968fc2bb4f3f766cb382.tar.gz llvm-99ab3d9861bccdd14b08968fc2bb4f3f766cb382.tar.bz2 |
[sanitizer] correct prctl scope
prctl scope is wrong, i think this is typo, we should use:
REAL(prctl)(args...)
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D147760
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc index 51703a3..3bd73cf 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc @@ -1350,7 +1350,7 @@ INTERCEPTOR(int, prctl, int option, unsigned long arg2, unsigned long arg3, char *name = (char *)arg5; COMMON_INTERCEPTOR_READ_RANGE(ctx, name, internal_strlen(name) + 1); } - int res = REAL(prctl(option, arg2, arg3, arg4, arg5)); + int res = REAL(prctl)(option, arg2, arg3, arg4, arg5); if (option == PR_SET_NAME) { char buff[16]; internal_strncpy(buff, (char *)arg2, 15); |