Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 40548 invoked from network); 15 Oct 2007 23:02:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Oct 2007 23:02:14 -0000 Received: (qmail 30555 invoked by uid 500); 15 Oct 2007 23:02:02 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 30538 invoked by uid 500); 15 Oct 2007 23:02:02 -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 30527 invoked by uid 99); 15 Oct 2007 23:02:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2007 16:02:02 -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; Mon, 15 Oct 2007 23:02:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0F7D77141EB for ; Mon, 15 Oct 2007 16:01:54 -0700 (PDT) Message-ID: <25170962.1192489314060.JavaMail.jira@brutus> Date: Mon, 15 Oct 2007 16:01:54 -0700 (PDT) From: "Travis Vitek (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-596) purify reports uninitialized memory read in _rw_fmtarray In-Reply-To: <14042462.1192489070669.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-596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Travis Vitek updated STDCXX-596: -------------------------------- Attachment: stdcxx-596.patch 2007-10-15 Travis Vitek STDCXX-586 * 0.printf.cpp (_rw_fmtarray): Check pointer bounds before examining the contents to avoid uninitialized memory read. > purify reports uninitialized memory read in _rw_fmtarray > -------------------------------------------------------- > > Key: STDCXX-596 > URL: https://issues.apache.org/jira/browse/STDCXX-596 > Project: C++ Standard Library > Issue Type: Improvement > Components: Test Driver > Reporter: Travis Vitek > Assignee: Travis Vitek > Priority: Minor > Fix For: 4.2.1 > > Attachments: stdcxx-596.patch > > > UMR: Uninitialized memory read: > * This is occurring while in thread 26262: > int _rw_fmtarray(FmtSpec const&, Buffer&, char const*, unsigned, int) [printf.cpp:2012] > _rw_fmtstr(FmtSpec const&, Buffer&, char const*, unsigned) [printf.cpp:2373] > _rw_fmtllong(FmtSpec const&, Buffer&, long long) [printf.cpp:1220] > int rw_fmtinteger(FmtSpec const&, Buffer&, long long) [printf.cpp:1237] > _rw_fmtinteger(FmtSpec*, unsigned, Buffer&, VarArgs*) [printf.cpp:1287] > _rw_vasnprintf_c99(FmtSpec*, unsigned, Buffer&, VarArgs*) [printf.cpp:540] > * Reading 1 byte from 0xbfffe9f4 on the stack of thread 26262. > * Address 0xbfffe9f4 is 28 bytes past start of local variable "buffer" in function _rw_fmtllong(FmtSpec const&, Buffer&, long long). > **** Purify instrumented ./18_ilimits (pid 26262) **** > UMR: Uninitialized memory read: > * This is occurring while in thread 26262: > int _rw_fmtarray(FmtSpec const&, Buffer&, char const*, unsigned, int) [printf.cpp:2012] > _rw_fmtstr(FmtSpec const&, Buffer&, char const*, unsigned) [printf.cpp:2373] > _rw_fmtllong(FmtSpec const&, Buffer&, long long) [printf.cpp:1220] > int rw_fmtinteger(FmtSpec const&, Buffer&, unsigned long long) [printf.cpp:1237] > _rw_fmtinteger(FmtSpec*, unsigned, Buffer&, VarArgs*) [printf.cpp:1370] > _rw_vasnprintf_c99(FmtSpec*, unsigned, Buffer&, VarArgs*) [printf.cpp:540] > * Reading 1 byte from 0xbfffe9e1 on the stack of thread 26262. > * Address 0xbfffe9e1 is 9 bytes past start of local variable "buffer" in function _rw_fmtllong(FmtSpec const&, Buffer&, long long). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.