Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / external / boost / ubsan.patch.0
blob19a77856c7774c45d909e59e39c777bae9690e15
1 Work around -fsanitize=bool and -fsanitize=nonnull-attribute
3 --- boost/algorithm/string/find_iterator.hpp
4 +++ boost/algorithm/string/find_iterator.hpp
5 @@ -240,7 +240,7 @@
6                  m_Match(Other.m_Match),
7                  m_Next(Other.m_Next),
8                  m_End(Other.m_End),
9 -                m_bEof(Other.m_bEof)
10 +                m_bEof(Other.eof())
11              {}
13              //! Constructor
14 --- boost/circular_buffer/debug.hpp
15 +++ boost/circular_buffer/debug.hpp
16 @@ -34,7 +34,7 @@
18  template <class T>
19  inline void do_fill_uninitialized_memory(T* data, std::size_t size_in_bytes) BOOST_NOEXCEPT {
20 -    std::memset(static_cast<void*>(data), UNINITIALIZED, size_in_bytes);
21 +    if (size_in_bytes != 0) std::memset(static_cast<void*>(data), UNINITIALIZED, size_in_bytes);
22  }
24  template <class T>