================
@@ -1447,6 +1448,8 @@ class directory_iterator {
explicit directory_iterator(const Twine &path, std::error_code &ec,
bool follow_symlinks = true)
: FollowSymlinks(follow_symlinks) {
+ sandbox::violationIfEnabled();
----------------
benlangmuir wrote:
Why are these violations caught here in the wrapper API instead of the
underlying `directory_iterator_construct`, `directory_iterator_increment`, etc?
https://github.com/llvm/llvm-project/pull/165350
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits