apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r768417 - in /apr/apr/trunk: CHANGES buckets/apr_brigade.c
Date Fri, 24 Apr 2009 20:58:21 GMT
Author: rpluem
Date: Fri Apr 24 20:58:21 2009
New Revision: 768417

URL: http://svn.apache.org/viewvc?rev=768417&view=rev
* Fix off by one overflow in apr_brigade_vprintf.
  For the gory details see

Submitted by: C. Michael Pilato <cmpilato collab.net>
Reviewed by: rpluem, trawick

in the log when they are applicable.

CVS:  ----------------------------------------------------------------------
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
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 <cmpilato collab.net>]
   *) 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);

View raw message