mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Change the length of the content args to apr_off_t identifiers, and fix
mod_negotation to treat a size of -1 and indeterminate, instead of 0. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89727 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -558,7 +558,7 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mode
|
||||
}
|
||||
else {
|
||||
const char *c = str;
|
||||
while (c - str < length) {
|
||||
while (c < str + length) {
|
||||
if (*c == APR_ASCII_LF)
|
||||
c++;
|
||||
else if (*c == APR_ASCII_CR && *(c + 1) == APR_ASCII_LF)
|
||||
@@ -1422,7 +1422,7 @@ static long get_chunk_size(char *b)
|
||||
* hold a chunk-size line, including any extensions. For now, we'll leave
|
||||
* that to the caller, at least until we can come up with a better solution.
|
||||
*/
|
||||
AP_DECLARE(long) ap_get_client_block(request_rec *r, char *buffer, int bufsiz)
|
||||
AP_DECLARE(long) ap_get_client_block(request_rec *r, char *buffer, apr_size_t bufsiz)
|
||||
{
|
||||
apr_size_t len_read, total;
|
||||
apr_status_t rv;
|
||||
|
Reference in New Issue
Block a user