[Boost-bugs] [Boost C++ Libraries] #9955: Using memcpy with overlapped buffers in vector

Subject: [Boost-bugs] [Boost C++ Libraries] #9955: Using memcpy with overlapped buffers in vector
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-26 11:13:15


#9955: Using memcpy with overlapped buffers in vector
------------------------------+------------------------
 Reporter: igaztanaga | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: container
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
------------------------------+------------------------
 According to the regression report using clang 3.5 and the address
 sanitizer:

 Class:
 N5boost9container6vectorIiNS0_4test25expand_bwd_test_allocatorIiEEEE
 =================================================================
 ==28903==ERROR: AddressSanitizer: memcpy-param-overlap: memory ranges
 [0x61800000010c,0x618000000170) and [0x618000000148, 0x6180000001ac)
 overlap

 The optimized boost::uninitialized_copy and related, use memcpy when types
 are trivial. However, std::copy can overlap and memcpy does not support
 overlapping, so it should call memmove instead.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9955>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC