llvm-project
8e999e3d - [llvm][clang] Sandbox filesystem reads (#165350)

Commit
144 days ago
[llvm][clang] Sandbox filesystem reads (#165350) This PR introduces a new mechanism for enforcing a sandbox around filesystem reads coming from the compiler. A fatal error is raised whenever the `llvm::sys::fs`, `llvm::MemoryBuffer::getFile*()` APIs get used directly instead of going through the "blessed" virtual interface of `llvm::vfs::FileSystem`.
Author
Parents
Loading