PR libstdc++/87787 fix UBsan error in std::vector
authorJonathan Wakely <jwakely@redhat.com>
Fri, 9 Nov 2018 20:14:07 +0000 (20:14 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 9 Nov 2018 20:14:07 +0000 (20:14 +0000)
commit213fd71709e40dbcf601f765e80a56b1c624e4a8
tree532eb077ffff67fdf71a4b61f0dfeb105e04dbae
parentfcc499722be30b540eb1c163bfe39d23c9164ae0
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).

From-SVN: r265984
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_uninitialized.h