[Bug libstdc++/58415] __sso_string_base move constructor does not null terminate local data when moving from empty string
paolo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 13 18:33:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58415
--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Sep 13 18:33:17 2013
New Revision: 202575
URL: http://gcc.gnu.org/viewcvs?rev=202575&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-4_8-branch/libstdc++-v3/testsuite/ext/vstring/cons/58415-1.cc
branches/gcc-4_8-branch/libstdc++-v3/testsuite/ext/vstring/cons/58415-2.cc
Modified:
branches/gcc-4_8-branch/libstdc++-v3/ChangeLog
branches/gcc-4_8-branch/libstdc++-v3/include/ext/sso_string_base.h
More information about the Gcc-bugs
mailing list