[compiler-rt] [sanitizer] Disable writes to log files for binaries in a secure context. (PR #92593)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Fri May 17 16:31:51 PDT 2024


================
@@ -104,6 +105,17 @@ void ReportFile::SetReportPath(const char *path) {
     }
   }
 
+  // This is so we can use the weak definition from sanitizer_getauxval.h
+  if (&getauxval && getauxval(/* AT_SECURE */ 23) != 0 && path &&
----------------
fmayer wrote:

This needs to be under SANITIZER_LINUX, otherwise we don't get the weak definition

https://github.com/llvm/llvm-project/pull/92593


More information about the llvm-commits mailing list