Fix UBSan runtime error (load of 'boost::interprocess::mode_t')

This commit is contained in:
Anthony Eden
2024-12-20 21:06:33 -08:00
parent 78e8c2ecd0
commit e5a14d135a

View File

@@ -90,7 +90,8 @@ class file_wrapper
//!After the call, "moved" does not represent any file.
//!Does not throw
file_wrapper(BOOST_RV_REF(file_wrapper) moved)
: m_handle(file_handle_t(ipcdetail::invalid_file()))
: m_handle(file_handle_t(ipcdetail::invalid_file()))
, m_mode(read_only)
{ this->swap(moved); }
//!Moves the ownership of "moved"'s file to *this.