[clang] [offload-arch] Fix HIP DLL discovery and loading on Windows (PR #194063)
Jacob Lambert via cfe-commits
cfe-commits at lists.llvm.org
Fri May 1 12:06:05 PDT 2026
================
@@ -112,10 +142,7 @@ static std::vector<std::string> getSearchPaths() {
Paths.push_back(Utf8WindowsDir);
}
- // Get the current working directory
- SmallVector<char, 256> CWD;
- if (sys::fs::current_path(CWD))
- Paths.push_back(std::string(CWD.begin(), CWD.end()));
+ // CWD deliberately excluded — DLL planting risk.
----------------
lamb-j wrote:
Are we sure removing the CWD check isn't going to break things?
https://github.com/llvm/llvm-project/pull/194063
More information about the cfe-commits
mailing list