Work around -fsanitize=bool and -fsanitize=nonnull-attribute --- boost/algorithm/string/find_iterator.hpp +++ boost/algorithm/string/find_iterator.hpp @@ -240,7 +240,7 @@ m_Match(Other.m_Match), m_Next(Other.m_Next), m_End(Other.m_End), - m_bEof(Other.m_bEof) + m_bEof(Other.eof()) {} //! Constructor --- boost/circular_buffer/debug.hpp +++ boost/circular_buffer/debug.hpp @@ -34,7 +34,7 @@ template inline void do_fill_uninitialized_memory(T* data, std::size_t size_in_bytes) BOOST_NOEXCEPT { - std::memset(static_cast(data), UNINITIALIZED, size_in_bytes); + if (size_in_bytes != 0) std::memset(static_cast(data), UNINITIALIZED, size_in_bytes); } template