mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-02 18:58:15 +00:00
[sanitizer] Fix pthread_exit interceptor's return type (#71253)
`pthread_exit`'s return type is void.
This commit is contained in:
parent
90f768440d
commit
d859403037
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user