Skip to content

Commit 5cf9435

Browse files
[compiler-rt][rtsan] Do not intercept [f]truncate64 for musl (#129331)
Musl has 64-bit off_t by default and has macros that redefine [f]truncate64 to [f]truncate.
1 parent b2cc28c commit 5cf9435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ INTERCEPTOR(int, ftruncate, int fd, off_t length) {
295295
return REAL(ftruncate)(fd, length);
296296
}
297297

298-
#if SANITIZER_LINUX
298+
#if SANITIZER_LINUX && !SANITIZER_MUSL
299299
INTERCEPTOR(int, truncate64, const char *pathname, off64_t length) {
300300
__rtsan_notify_intercepted_call("truncate64");
301301
return REAL(truncate64)(pathname, length);

0 commit comments

Comments
 (0)