[Bug libstdc++/58415] __sso_string_base move constructor does not null terminate local data when moving from empty string

2013-09-13 Thread mkirzinger at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58415 --- Comment #2 from Michael Kirzinger --- There appears to be one additional problem: if __rcs._M_is_local() is true, but __rcs._M_length() is false, the buffer of the string being created is never null terminated/zeroed. Example: ---

[Bug libstdc++/58415] New: __sso_string_base move constructor does not null terminate local data when moving from empty string

2013-09-13 Thread mkirzinger at gmail dot com
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: mkirzinger at gmail dot com When doing a move construct using a sso_string_base versa_string where it is moving from an empty string, the contents