Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 96595 invoked from network); 19 Oct 2006 06:55:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Oct 2006 06:55:31 -0000 Received: (qmail 79384 invoked by uid 500); 19 Oct 2006 06:55:30 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 79367 invoked by uid 500); 19 Oct 2006 06:55:30 -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 79356 invoked by uid 99); 19 Oct 2006 06:55:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2006 23:55:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2006 23:55:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7F0F6714314 for ; Wed, 18 Oct 2006 23:54:35 -0700 (PDT) Message-ID: <27932573.1161240875517.JavaMail.jira@brutus> Date: Wed, 18 Oct 2006 23:54:35 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Resolved: (STDCXX-297) std::bitset constructor addressed memory beyond the object In-Reply-To: <23000834.1160138359476.JavaMail.root@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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/STDCXX-297?page=all ] Farid Zaripov resolved STDCXX-297. ---------------------------------- Resolution: Fixed Fixed thus: http://svn.apache.org/viewvc?view=rev&rev=465512 > std::bitset constructor addressed memory beyond the object > ---------------------------------------------------------- > > Key: STDCXX-297 > URL: http://issues.apache.org/jira/browse/STDCXX-297 > Project: C++ Standard Library > Issue Type: Bug > Components: 23. Containers > Affects Versions: 4.1.3 > Environment: All > Reporter: Farid Zaripov > Priority: Trivial > Fix For: 4.2 > > > he program below fails: > ------------------------------------------ > #include > #include > #include > #include > #include > #include > int main () > { > typedef std::bitset<128> BitSet; > const std::size_t size = sizeof (BitSet); > char buf [size + 4]; > memset (buf, '\xff', sizeof (buf)); > BitSet* btest = new (buf) BitSet (std::basic_string ()); > for (std::size_t i = size; i < sizeof (buf); ++i) > assert ('\xff' == buf [i]); > btest->~BitSet (); > return 0; > } > ------------------------------------------ > Assertion failed: '\xff' == buf [i], file test.cpp, line 19 > This application has requested the Runtime to terminate it in an unusual way. > Please contact the application's support team for more information. > ------------------------------------------ -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira