From 3cad604978f5a0cba0c61e4cd74aed863c2c155c Mon Sep 17 00:00:00 2001 From: guzhihao4 Date: Tue, 28 Feb 2023 21:22:14 +0800 Subject: [PATCH] Disable file create in sanitizer Clang don't have right to create file in some cases like startup. Temporary disable it as a workaround way. Issue: #I6IJQO Signed-off-by: guzhihao4 Change-Id: Ia3fe5fd61aa7e1e38c5b7eaf88b91fd87976d699 --- compiler-rt/lib/sanitizer_common/sanitizer_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_file.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_file.cpp index 7ef499ce07b1..1e32f373d224 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_file.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_file.cpp @@ -114,7 +114,7 @@ void ReportFile::SetReportPath(const char *path) { fd = kStdoutFd; } else { internal_snprintf(path_prefix, kMaxPathLength, "%s", path); - RecursiveCreateParentDirs(path_prefix); + // RecursiveCreateParentDirs(path_prefix); } } -- Gitee