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/base.hpp +++ boost/circular_buffer/base.hpp @@ -2355,7 +2355,7 @@ //! Add n to the pointer. template Pointer add(Pointer p, difference_type n) const { - return p + (n < (m_end - p) ? n : n - capacity()); + return p + (n < (m_end - p) ? n : difference_type(n - capacity())); } //! Subtract n from the pointer. --- 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