From c1552692e030ea245d4bf091537ba94b8864a07f Mon Sep 17 00:00:00 2001 From: Flole998 Date: Tue, 20 Oct 2020 00:39:36 +0200 Subject: [PATCH] Fix #5962 --- src/wrappers.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wrappers.c b/src/wrappers.c index 4cccdfc41..635758fba 100644 --- a/src/wrappers.c +++ b/src/wrappers.c @@ -452,8 +452,7 @@ int regex_match_substring_length(tvh_regex_t *regex, unsigned number) * Sanitizer helpers to avoid false positives */ #if ENABLE_CCLANG_THREADSAN -void *blacklisted_memcpy(void *dest, const void *src, size_t n) - __attribute__((no_sanitize("thread"))) +void __attribute__((no_sanitize("thread"))) *blacklisted_memcpy(void *dest, const void *src, size_t n) { uint8_t *d = dest; const uint8_t *s = src; @@ -463,8 +462,7 @@ void *blacklisted_memcpy(void *dest, const void *src, size_t n) void *dlsym(void *handle, const char *symbol); -int blacklisted_close(int fd) - __attribute__((no_sanitize("thread"))) +int __attribute__((no_sanitize("thread"))) blacklisted_close(int fd) { // close(fd); // sanitizer reports errors in close() return 0; -- 2.47.2