public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "paolo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/58415] __sso_string_base move constructor does not null terminate local data when moving from empty string
Date: Fri, 13 Sep 2013 18:33:00 -0000	[thread overview]
Message-ID: <bug-58415-4-IxLkhLidCM@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-58415-4@http.gcc.gnu.org/bugzilla/>

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


  parent reply	other threads:[~2013-09-13 18:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-13 16:16 [Bug libstdc++/58415] New: " mkirzinger at gmail dot com
2013-09-13 16:59 ` [Bug libstdc++/58415] " paolo.carlini at oracle dot com
2013-09-13 17:26 ` mkirzinger at gmail dot com
2013-09-13 17:29 ` paolo.carlini at oracle dot com
2013-09-13 18:32 ` paolo at gcc dot gnu.org
2013-09-13 18:33 ` paolo at gcc dot gnu.org [this message]
2013-09-13 18:34 ` paolo.carlini at oracle dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-58415-4-IxLkhLidCM@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).