PR libstdc++/87787 fix UBsan error in std::vector
commitd64015d25eb056f2c12228156b3b97b85973cd44
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Nov 2018 20:14:07 +0000 (9 20:14 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Nov 2018 20:14:07 +0000 (9 20:14 +0000)
tree532eb077ffff67fdf71a4b61f0dfeb105e04dbae
parenta621bf1638f501e4887d9de5cada39525aef9bb8
PR libstdc++/87787 fix UBsan error in std::vector

PR libstdc++/87787
* include/bits/stl_uninitialized.h (__relocate_a_1): Do not call
memmove when there's nothing to copy (and pointers could be null).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265984 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_uninitialized.h