From 52d19aca49bed5db5dfa8b41aa342ae50031f6aa Mon Sep 17 00:00:00 2001 From: jpk68 Date: Mon, 10 Aug 2026 17:42:29 -0400 Subject: [PATCH] epee: ensure is_file_exist doesn't throw --- contrib/epee/src/file_io_utils.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/contrib/epee/src/file_io_utils.cpp b/contrib/epee/src/file_io_utils.cpp index bd401f5c4..fcba7037c 100644 --- a/contrib/epee/src/file_io_utils.cpp +++ b/contrib/epee/src/file_io_utils.cpp @@ -63,8 +63,15 @@ namespace file_io_utils bool is_file_exist(const std::string& path) { - boost::filesystem::path p(path); - return boost::filesystem::exists(p); + try + { + boost::filesystem::path p(path); + return boost::filesystem::exists(p); + } + catch (...) + { + return false; + } }