[sanitizer] Fix pthread_exit interceptor's return type (#71253)

`pthread_exit`'s return type is void.
This commit is contained in:
Heejin Ahn 2023-11-05 22:41:37 -08:00 committed by GitHub
parent 90f768440d
commit d859403037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -300,9 +300,9 @@ INTERCEPTOR(int, pthread_detach, void *thread) {
return result;
}
INTERCEPTOR(int, pthread_exit, void *retval) {
INTERCEPTOR(void, pthread_exit, void *retval) {
asanThreadArgRetval().Finish(GetThreadSelf(), retval);
return REAL(pthread_exit)(retval);
REAL(pthread_exit)(retval);
}
# if ASAN_INTERCEPT_TRYJOIN

View File

@ -305,9 +305,9 @@ INTERCEPTOR(int, pthread_detach, void *thread) {
return result;
}
INTERCEPTOR(int, pthread_exit, void *retval) {
INTERCEPTOR(void, pthread_exit, void *retval) {
hwasanThreadArgRetval().Finish(GetThreadSelf(), retval);
return REAL(pthread_exit)(retval);
REAL(pthread_exit)(retval);
}
# if SANITIZER_GLIBC

View File

@ -490,9 +490,9 @@ INTERCEPTOR(int, pthread_detach, void *thread) {
return result;
}
INTERCEPTOR(int, pthread_exit, void *retval) {
INTERCEPTOR(void, pthread_exit, void *retval) {
GetThreadArgRetval().Finish(GetThreadSelf(), retval);
return REAL(pthread_exit)(retval);
REAL(pthread_exit)(retval);
}
# if SANITIZER_INTERCEPT_TRYJOIN