Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 55631 invoked from network); 24 Apr 2009 20:58:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Apr 2009 20:58:52 -0000 Received: (qmail 5402 invoked by uid 500); 24 Apr 2009 20:58:52 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 5336 invoked by uid 500); 24 Apr 2009 20:58:52 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 5327 invoked by uid 99); 24 Apr 2009 20:58:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Apr 2009 20:58:52 +0000 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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Apr 2009 20:58:42 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E8D9A23889B9; Fri, 24 Apr 2009 20:58:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r768417 - in /apr/apr/trunk: CHANGES buckets/apr_brigade.c Date: Fri, 24 Apr 2009 20:58:21 -0000 To: commits@apr.apache.org From: rpluem@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090424205821.E8D9A23889B9@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rpluem Date: Fri Apr 24 20:58:21 2009 New Revision: 768417 URL: http://svn.apache.org/viewvc?rev=768417&view=rev Log: * Fix off by one overflow in apr_brigade_vprintf. For the gory details see http://mail-archives.apache.org/mod_mbox/apr-dev/200904.mbox/%3c49F21CD2.5020105@collab.net%3e Submitted by: C. Michael Pilato Reviewed by: rpluem, trawick in the log when they are applicable. CVS: ---------------------------------------------------------------------- CVS: PR: CVS: If this change addresses a PR in the problem report tracking CVS: database, then enter the PR number(s) here. CVS: Obtained from: CVS: If this change has been taken from another system, such as NCSA, CVS: then name the system in this line, otherwise delete it. CVS: Submitted by: CVS: If this code has been contributed to Apache by someone else; i.e., CVS: they sent us a patch or a new module, then include their name/ email CVS: address here. If this is your work then delete this line. CVS: Reviewed by: CVS: If we are doing pre-commit code reviews and someone else has CVS: reviewed your changes, include their name(s) here. CVS: If you have not had it reviewed then delete this line. Modified: apr/apr/trunk/CHANGES apr/apr/trunk/buckets/apr_brigade.c Modified: apr/apr/trunk/CHANGES URL: http://svn.apache.org/viewvc/apr/apr/trunk/CHANGES?rev=768417&r1=768416&r2=768417&view=diff ============================================================================== --- apr/apr/trunk/CHANGES [utf-8] (original) +++ apr/apr/trunk/CHANGES [utf-8] Fri Apr 24 20:58:21 2009 @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes for APR 2.0.0 + *) Fix off by one overflow in apr_brigade_vprintf. + [C. Michael Pilato ] + *) apr_thread_cond_*wait() on BeOS: Fix broken logic. PR 45800. [Jochen Voss (no e-mail)] Modified: apr/apr/trunk/buckets/apr_brigade.c URL: http://svn.apache.org/viewvc/apr/apr/trunk/buckets/apr_brigade.c?rev=768417&r1=768416&r2=768417&view=diff ============================================================================== --- apr/apr/trunk/buckets/apr_brigade.c (original) +++ apr/apr/trunk/buckets/apr_brigade.c Fri Apr 24 20:58:21 2009 @@ -689,9 +689,6 @@ return -1; } - /* tack on null terminator to remaining string */ - *(vd.vbuff.curpos) = '\0'; - /* write out what remains in the buffer */ return apr_brigade_write(b, flush, ctx, buf, vd.vbuff.curpos - buf); }