You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2021/08/20 09:10:55 UTC

svn commit: r1892467 - /httpd/httpd/trunk/server/core_filters.c

Author: ylavic
Date: Fri Aug 20 09:10:55 2021
New Revision: 1892467

URL: http://svn.apache.org/viewvc?rev=1892467&view=rev
Log:
core: core ouput filter iovec vs brigade consistency assertion.

* server/core_filters.c (writev_nonblocking):
  Assert that a bucket is always bound to the walked iovec.

Modified:
    httpd/httpd/trunk/server/core_filters.c

Modified: httpd/httpd/trunk/server/core_filters.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core_filters.c?rev=1892467&r1=1892466&r2=1892467&view=diff
==============================================================================
--- httpd/httpd/trunk/server/core_filters.c (original)
+++ httpd/httpd/trunk/server/core_filters.c Fri Aug 20 09:10:55 2021
@@ -647,6 +647,7 @@ static apr_status_t writev_nonblocking(a
 
         for (i = offset; i < nvec; ) {
             apr_bucket *bucket = APR_BRIGADE_FIRST(bb);
+            ap_assert(bucket != APR_BRIGADE_SENTINEL(bb));
             if (!bucket->length) {
                 delete_meta_bucket(bucket);
             }