Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 89490 invoked from network); 1 Oct 2007 16:14:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Oct 2007 16:14:41 -0000 Received: (qmail 76747 invoked by uid 500); 1 Oct 2007 16:14:31 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 76733 invoked by uid 500); 1 Oct 2007 16:14:31 -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 76722 invoked by uid 99); 1 Oct 2007 16:14:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 09:14:31 -0700 X-ASF-Spam-Status: No, hits=-98.8 required=10.0 tests=ALL_TRUSTED,DNS_FROM_DOB,RCVD_IN_DOB 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; Mon, 01 Oct 2007 16:14:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E6DF8714218 for ; Mon, 1 Oct 2007 09:13:50 -0700 (PDT) Message-ID: <18761375.1191255230943.JavaMail.jira@brutus> Date: Mon, 1 Oct 2007 09:13:50 -0700 (PDT) From: "Farid Zaripov (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Commented: (STDCXX-68) [MSVC 8.0] strxfrm(s1, s2, 0) writes past the end of the destination buffer In-Reply-To: <1259284751.1132361502268.JavaMail.jira@ajax.apache.org> 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-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531549 ] Farid Zaripov commented on STDCXX-68: ------------------------------------- This bug has been fixed in MSVC 9.0 beta2. > [MSVC 8.0] strxfrm(s1, s2, 0) writes past the end of the destination buffer > --------------------------------------------------------------------------- > > Key: STDCXX-68 > URL: https://issues.apache.org/jira/browse/STDCXX-68 > Project: C++ Standard Library > Issue Type: Bug > Components: External > Affects Versions: 4.1.2 > Environment: MSVC 8 > Reporter: Martin Sebor > Assignee: Martin Sebor > > From > http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx?feedbackid=b41c0882-79d0-412b-b404-d9ecb1952c31 > ====================================================================== > Bug ID: FDBK40793 > Problem Type: Bug > Status: New > Microsoft Status: Under Review > Opened Date: 2005-11-18 16:06:05 > Opened By: Martin Sebor > Product/Technology: Visual C++ > Version: Visual Studio 2005 > Product Language: English > Category: Libraries > OS: Windows 2000 Server > OS Language: US English > Submission Language: English > ====================================================================== > Description: > Opened by Martin Sebor on 2005-11-18 at 16:06:05 > > The C standard library function strxfrm() writes past the end of the destination > buffer. > ====================================================================== > Steps to Reproduce: > $ cat t.cpp && cl t.cpp && ./t.exe > #include > #include > #include > int main () > { > setlocale (LC_COLLATE, "CAT"); > char s1 [2] = { '*', '*' }; > strxfrm (s1, "", 0); > assert ('*' == s1 [0] && '*' == s1 [1]); > } > Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86 > Copyright (C) Microsoft Corporation. All rights reserved. > t.cpp > Microsoft (R) Incremental Linker Version 8.00.50727.42 > Copyright (C) Microsoft Corporation. All rights reserved. > /out:t.exe > t.obj > Assertion failed: '*' == s1 [0] && '*' == s1 [1], file t.cpp, line 11 > This application has requested the Runtime to terminate it in an unusual way. > Please contact the application's support team for more information. > ====================================================================== > Actual Results: Runtime error. > Expected Results: No error. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.