diff --git a/doc/interprocess.qbk b/doc/interprocess.qbk index fee02ac..27124a2 100644 --- a/doc/interprocess.qbk +++ b/doc/interprocess.qbk @@ -6771,6 +6771,7 @@ thank them: * [@https://github.com/boostorg/interprocess/issues/59 GitHub Issue #59 (['"warning: ISO C++ prohibits anonymous structs [-Wpedantic]"])]. * [@https://github.com/boostorg/interprocess/issues/60 GitHub Issue #60 (['"warning: cast between incompatible function types from boost::interprocess::winapi::farproc_t..."])]. * [@https://github.com/boostorg/interprocess/issues/61 GitHub Issue #61 (['"warning: struct winapi::*_BIPC has virtual functions and accessible non-virtual destructor"])]. + * [@https://github.com/boostorg/interprocess/issues/64 GitHub Issue #64 (['"UBSan: runtime error: load of value 4294967295, (...) for type 'boost::interprocess::mode_t'"])]. * [@https://github.com/boostorg/interprocess/pull/68 GitHub Pull #68 (['"Prepare for C++20 and remove "throw()" usage"])]. [endsect] diff --git a/include/boost/interprocess/detail/file_wrapper.hpp b/include/boost/interprocess/detail/file_wrapper.hpp index 58f28e9..99e0fea 100644 --- a/include/boost/interprocess/detail/file_wrapper.hpp +++ b/include/boost/interprocess/detail/file_wrapper.hpp @@ -113,12 +113,13 @@ class file_wrapper bool priv_open_or_create(ipcdetail::create_enum_t type, const char *filename, mode_t mode, const permissions &perm); file_handle_t m_handle; - mode_t m_mode; - std::string m_filename; + mode_t m_mode; + std::string m_filename; }; inline file_wrapper::file_wrapper() - : m_handle(file_handle_t(ipcdetail::invalid_file())) + : m_handle(file_handle_t(ipcdetail::invalid_file())) + , m_mode(read_only), m_filename() {} inline file_wrapper::~file_wrapper()