Return-Path: Delivered-To: apmail-stdcxx-commits-archive@www.apache.org Received: (qmail 30850 invoked from network); 15 Mar 2008 11:26:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2008 11:26:09 -0000 Received: (qmail 33275 invoked by uid 500); 15 Mar 2008 11:26:06 -0000 Delivered-To: apmail-stdcxx-commits-archive@stdcxx.apache.org Received: (qmail 33260 invoked by uid 500); 15 Mar 2008 11:26:06 -0000 Mailing-List: contact commits-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 commits@stdcxx.apache.org Received: (qmail 33251 invoked by uid 99); 15 Mar 2008 11:26:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Mar 2008 04:26:06 -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.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Mar 2008 11:25:26 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 054121A9832; Sat, 15 Mar 2008 04:25:45 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r637394 - /stdcxx/trunk/tests/src/printf.cpp Date: Sat, 15 Mar 2008 11:25:45 -0000 To: commits@stdcxx.apache.org From: faridz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080315112546.054121A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: faridz Date: Sat Mar 15 04:25:40 2008 New Revision: 637394 URL: http://svn.apache.org/viewvc?rev=637394&view=rev Log: 2008-03-15 Farid Zaripov * tests/src/printf.cpp (rw_vasnprintf): Add assertion when processing the "%{+}" directive to detect buffer overruns. Modified: stdcxx/trunk/tests/src/printf.cpp Modified: stdcxx/trunk/tests/src/printf.cpp URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/src/printf.cpp?rev=637394&r1=637393&r2=637394&view=diff ============================================================================== --- stdcxx/trunk/tests/src/printf.cpp (original) +++ stdcxx/trunk/tests/src/printf.cpp Sat Mar 15 04:25:40 2008 @@ -977,6 +977,7 @@ // over it fmt += 4; buf.endoff = *buf.pbuf ? strlen (*buf.pbuf) : 0; + RW_ASSERT (buf.endoff < *buf.pbufsize); } else if (*buf.pbuf) **buf.pbuf = '\0';