Skip to content

Commit 5443911

Browse files
authored
Merge pull request #245 from aleden/develop
Fix UBSan runtime error (load of 'boost::interprocess::mode_t')
2 parents b11c6a1 + e5a14d1 commit 5443911

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/boost/interprocess/detail/file_wrapper.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ class file_wrapper
9090
//!After the call, "moved" does not represent any file.
9191
//!Does not throw
9292
file_wrapper(BOOST_RV_REF(file_wrapper) moved)
93-
: m_handle(file_handle_t(ipcdetail::invalid_file()))
93+
: m_handle(file_handle_t(ipcdetail::invalid_file()))
94+
, m_mode(read_only)
9495
{ this->swap(moved); }
9596

9697
//!Moves the ownership of "moved"'s file to *this.

0 commit comments

Comments
 (0)