[llvm] [Windows] Avoid loading shared libraries from load directory (PR #90520)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 16:47:38 PDT 2024


================
@@ -43,6 +43,10 @@ InitLLVM::InitLLVM(int &Argc, const char **&Argv,
   assert(!Initialized && "InitLLVM was already initialized!");
   Initialized = true;
 #endif
+#ifdef _WIN32
+  // Avoid searching the directory from which the application is loaded.
----------------
jofrn wrote:

It may be the case that one has cert-pinning or allow-listing so as to be safe. And if the search path is restricted, then one can be safer.

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


More information about the llvm-commits mailing list