]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Change no_sanitize("thread") attributes
authorFlole998 <Flole998@users.noreply.github.com>
Thu, 22 Oct 2020 21:18:52 +0000 (23:18 +0200)
committerGitHub <noreply@github.com>
Thu, 22 Oct 2020 21:18:52 +0000 (23:18 +0200)
src/wrappers.c

index 635758fbaeb792a9592a59704d4bcd5567222df1..09ba146a883dd3234ea27ebded6fad9f32259930 100644 (file)
@@ -452,7 +452,7 @@ int regex_match_substring_length(tvh_regex_t *regex, unsigned number)
  * Sanitizer helpers to avoid false positives
  */
 #if ENABLE_CCLANG_THREADSAN
-void __attribute__((no_sanitize("thread"))) *blacklisted_memcpy(void *dest, const void *src, size_t n) 
+void __attribute__((no_sanitize_thread)) *blacklisted_memcpy(void *dest, const void *src, size_t n) 
 {
   uint8_t *d = dest;
   const uint8_t *s = src;
@@ -462,7 +462,7 @@ void __attribute__((no_sanitize("thread"))) *blacklisted_memcpy(void *dest, cons
 
 void *dlsym(void *handle, const char *symbol);
 
-int __attribute__((no_sanitize("thread"))) blacklisted_close(int fd)
+int __attribute__((no_sanitize_thread)) blacklisted_close(int fd)
 {
   // close(fd); // sanitizer reports errors in close()
   return 0;