aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt
diff options
context:
space:
mode:
authorlizhiguang <zhig19860@gmail.com>2023-04-12 10:47:28 -0700
committerVitaly Buka <vitalybuka@google.com>2023-04-12 10:50:04 -0700
commit99ab3d9861bccdd14b08968fc2bb4f3f766cb382 (patch)
tree094fa7630fb1b7e3d1eebb11beb09e0c69db36e2 /compiler-rt
parentd945b6496ec6604f692804d501fc96583069d432 (diff)
downloadllvm-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.inc2
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);