[clang] [llvm] [llvm][clang] Sandbox filesystem reads (PR #165350)

Ben Langmuir via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 6 15:10:01 PST 2025


================
@@ -1132,6 +1147,8 @@ bool is_other(const basic_file_status &status) {
 }
 
 std::error_code is_other(const Twine &Path, bool &Result) {
+  sandbox::violationIfEnabled();
----------------
benlangmuir wrote:

Won't we catch these via `status` being a violation?  Similarly for the other APIs here (e.g. openFileForRead).

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


More information about the cfe-commits mailing list