Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 76604 invoked from network); 10 Jul 2008 20:32:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2008 20:32:52 -0000 Received: (qmail 63917 invoked by uid 500); 10 Jul 2008 20:32:53 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 63887 invoked by uid 500); 10 Jul 2008 20:32:53 -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 63867 invoked by uid 99); 10 Jul 2008 20:32:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 13:32:53 -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, 10 Jul 2008 20:32:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BBC92234C168 for ; Thu, 10 Jul 2008 13:32:31 -0700 (PDT) Message-ID: <1505326820.1215721951768.JavaMail.jira@brutus> Date: Thu, 10 Jul 2008 13:32:31 -0700 (PDT) From: "Travis Vitek (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Updated: (STDCXX-989) [EDG C++ 3.9] definition of jmp_buf causes buffer overflow In-Reply-To: <1090103239.1215721951647.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-989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Travis Vitek updated STDCXX-989: -------------------------------- Description: The {{jmp_buf}} definition provided in {{include/ansi/\_csetjmp.h}} is not as large as {{setjmp()}} is expecting. This causes a buffer overflow when running tests that use the test driver ({{rw_test}}), which results in data corruption. If you run the tests with {{--trace}}, you will see that the _clause_ field of the output is always corrupt after the first use. The following shows the expected size for us... {noformat} $ cat u.cpp; eccp u.cpp && ./a.out #include #include int main () { printf ("%u\n", sizeof (jmp_buf)); return 0; } 156 {noformat} The definition of {{jmp_buf}} in {{include/rw/_csetjmp.h}} is a buffer of 8 bytes. was: The {{jmp_buf}} definition provided in {{include/ansi/_csetjmp.h}} is not as large as {{setjmp()}} is expecting. This causes a buffer overflow when running tests that use the test driver ({{rw_test}}), which results in data corruption. If you run the tests with {{--trace}}, you will see that the _clause_ field of the output is always corrupt after the first use. The following shows the expected size for us... {noformat} $ cat u.cpp; eccp u.cpp && ./a.out #include #include int main () { printf ("%u\n", sizeof (jmp_buf)); return 0; } 156 {noformat} The definition of {{jmp_buf}} in {{include/rw/_csetjmp.h}} is a buffer of 8 bytes. > [EDG C++ 3.9] definition of jmp_buf causes buffer overflow > ---------------------------------------------------------- > > Key: STDCXX-989 > URL: https://issues.apache.org/jira/browse/STDCXX-989 > Project: C++ Standard Library > Issue Type: Bug > Components: 18. Language Support > Affects Versions: 4.2.x > Environment: Linux/EDG C++ 3.9 > Reporter: Travis Vitek > Fix For: 4.2.x > > Original Estimate: 1h > Remaining Estimate: 1h > > The {{jmp_buf}} definition provided in {{include/ansi/\_csetjmp.h}} is not as large as {{setjmp()}} is expecting. This causes a buffer overflow when running tests that use the test driver ({{rw_test}}), which results in data corruption. If you run the tests with {{--trace}}, you will see that the _clause_ field of the output is always corrupt after the first use. > The following shows the expected size for us... > {noformat} > $ cat u.cpp; eccp u.cpp && ./a.out > #include > #include > int main () > { > printf ("%u\n", sizeof (jmp_buf)); > return 0; > } > 156 > {noformat} > The definition of {{jmp_buf}} in {{include/rw/_csetjmp.h}} is a buffer of 8 bytes. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.