ASF Bugzilla – Attachment 37128 Details for
Bug 64273
apr-util: apr_brigade_split_line leaves empty bucket when line ends with linefeed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Bugfix for the described issue in apr-util-1.6.1
apr-util-1.6.1-brigade-split-line-no-empty-bucket-fix (text/plain), 631 bytes, created by
Barnim Dzwillo
on 2020-03-27 11:52:50 UTC
(
hide
)
Description:
Bugfix for the described issue in apr-util-1.6.1
Filename:
MIME Type:
Creator:
Barnim Dzwillo
Created:
2020-03-27 11:52:50 UTC
Size:
631 bytes
patch
obsolete
>Index: apr-util-1.6/buckets/apr_brigade.c >=================================================================== >--- apr-util-1.6/buckets/apr_brigade.c (revision 1875770) >+++ apr-util-1.6/buckets/apr_brigade.c (working copy) >@@ -325,7 +325,9 @@ > pos = memchr(str, APR_ASCII_LF, len); > /* We found a match. */ > if (pos != NULL) { >- apr_bucket_split(e, pos - str + 1); >+ if ((pos - str + 1) < e->length) { >+ apr_bucket_split(e, pos - str + 1); >+ } > APR_BUCKET_REMOVE(e); > APR_BRIGADE_INSERT_TAIL(bbOut, e); > return APR_SUCCESS;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 64273
: 37128 |
37129
|
37130