re PR libstdc++/58415 (__sso_string_base move constructor does not null terminate...
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 13 Sep 2013 18:32:42 +0000 (18:32 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 13 Sep 2013 18:32:42 +0000 (18:32 +0000)
commit4f03875418e8d9df12f819a0baeaece1cc7c13e7
treecb71b780b49ea920aefd6402f91037c07f8a7678
parent88b0e79e45b76cece89ee1ac4a2feca4524a9b55
re PR libstdc++/58415 (__sso_string_base move constructor does not null terminate local data when moving from empty string)

2013-09-13  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/58415
* include/ext/sso_string_base.h (__sso_string_base<>::
__sso_string_base(__sso_string_base&&)): Fix thinkos about
_M_length vs _M_set_length.
* testsuite/ext/vstring/cons/58415-1.cc: New.
* testsuite/ext/vstring/cons/58415-2.cc: Likewise.

From-SVN: r202574
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/sso_string_base.h
libstdc++-v3/testsuite/ext/vstring/cons/58415-1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/vstring/cons/58415-2.cc [new file with mode: 0644]