Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 9416 invoked from network); 24 Jul 2007 16:04:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2007 16:04:52 -0000 Received: (qmail 86472 invoked by uid 500); 24 Jul 2007 16:04:53 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 86447 invoked by uid 500); 24 Jul 2007 16:04:53 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 86426 invoked by uid 99); 24 Jul 2007 16:04:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 09:04:53 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 09:04:51 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 47A0671418E for ; Tue, 24 Jul 2007 09:04:31 -0700 (PDT) Message-ID: <12223188.1185293071291.JavaMail.jira@brutus> Date: Tue, 24 Jul 2007 09:04:31 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Closed: (STDCXX-175) std::string::replace (size_type, size_type, const_pointer, size_type) doesn't check last argument In-Reply-To: <23160630.1146154119020.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-175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Farid Zaripov closed STDCXX-175. -------------------------------- The regression test added thus: http://svn.apache.org/viewvc?view=rev&rev=559085 > std::string::replace (size_type, size_type, const_pointer, size_type) doesn't check last argument > ------------------------------------------------------------------------------------------------- > > Key: STDCXX-175 > URL: https://issues.apache.org/jira/browse/STDCXX-175 > Project: C++ Standard Library > Issue Type: Bug > Components: 21. Strings > Affects Versions: 4.1.3 > Environment: all > Reporter: Anton Pevtsov > Assignee: Farid Zaripov > Priority: Minor > > The following test fails with segmentation fault: > #include > #include > #include > static char long_string [4096] = {'a'}; > int main (void) > { > try > { > std::string s (long_string, 4095); > s.replace (0, 1, "a", s.max_size () + 1); > std::cout << "Expect length error, got nothing" << '\n'; > } > catch (std::length_error& e) > { > std::cout << "Got expected length error" << '\n'; > } > return 0; > } > See the discussion for additional details: > http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200604.mbox/%3c444EC747.1090200@roguewave.com%3e -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.