Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 53504 invoked from network); 17 Apr 2008 10:06:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Apr 2008 10:06:40 -0000 Received: (qmail 28249 invoked by uid 500); 17 Apr 2008 10:06:41 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 28232 invoked by uid 500); 17 Apr 2008 10:06:41 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 28223 invoked by uid 99); 17 Apr 2008 10:06:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 03:06:41 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 10:05:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F0D36234C0DA for ; Thu, 17 Apr 2008 03:03:21 -0700 (PDT) Message-ID: <2005417214.1208426601985.JavaMail.jira@brutus> Date: Thu, 17 Apr 2008 03:03:21 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Closed: (STDCXX-795) std::basic_stringbuf::overflow() writes characters at the begin, but not at the current position if reallocation of internal buffer occurs In-Reply-To: <333415488.1206455124276.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov closed STDCXX-795. -------------------------------- Fix and regression test are merged in 4.2.x branch thus: http://svn.apache.org/viewvc?view=rev&revision=648752 > std::basic_stringbuf::overflow() writes characters at the begin, but not at the current position if reallocation of internal buffer occurs > ------------------------------------------------------------------------------------------------------------------------------------------ > > Key: STDCXX-795 > URL: https://issues.apache.org/jira/browse/STDCXX-795 > Project: C++ Standard Library > Issue Type: Bug > Components: 27. Input/Output > Affects Versions: 4.2.0 > Environment: All > Reporter: Farid Zaripov > Assignee: Farid Zaripov > Fix For: 4.2.1 > > Original Estimate: 2h > Time Spent: 2h > Remaining Estimate: 0h > > From [http://www.mail-archive.com/user@stdcxx.apache.org/msg00014.html] > The test below asserts on i = 513 > {code:title=test.cpp} > #include > #include > #include > int main () > { > std::ostringstream strm; > std::string s; > for (size_t i = 1; i <= 1024; ++i) { > const char c = char (i); > strm << c; > s.push_back (c); > assert (strm.str () == s); > } > return 0; > } > {code} > The test output: > {noformat} > test: test.cpp:14: int main (): Assertion `strm.str () == s' failed. > Aborted > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.