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 2022/11/02 13:23:16 UTC

svn commit: r1905019 - in /httpd/apreq/trunk: library/module_cgi.c module/apache/handle.c module/apache2/filter.c

Author: ylavic
Date: Wed Nov  2 13:23:16 2022
New Revision: 1905019

URL: http://svn.apache.org/viewvc?rev=1905019&view=rev
Log:
Content-Length is base 10 only.


Modified:
    httpd/apreq/trunk/library/module_cgi.c
    httpd/apreq/trunk/module/apache/handle.c
    httpd/apreq/trunk/module/apache2/filter.c

Modified: httpd/apreq/trunk/library/module_cgi.c
URL: http://svn.apache.org/viewvc/httpd/apreq/trunk/library/module_cgi.c?rev=1905019&r1=1905018&r2=1905019&view=diff
==============================================================================
--- httpd/apreq/trunk/library/module_cgi.c (original)
+++ httpd/apreq/trunk/library/module_cgi.c Wed Nov  2 13:23:16 2022
@@ -354,7 +354,7 @@ static void init_body(apreq_handle_t *ha
 
     if (cl_header != NULL) {
         char *dummy;
-        apr_int64_t content_length = apr_strtoi64(cl_header, &dummy, 0);
+        apr_int64_t content_length = apr_strtoi64(cl_header, &dummy, 10);
 
         if (dummy == cl_header || *dummy != 0) {
             req->body_status = APREQ_ERROR_BADHEADER;

Modified: httpd/apreq/trunk/module/apache/handle.c
URL: http://svn.apache.org/viewvc/httpd/apreq/trunk/module/apache/handle.c?rev=1905019&r1=1905018&r2=1905019&view=diff
==============================================================================
--- httpd/apreq/trunk/module/apache/handle.c (original)
+++ httpd/apreq/trunk/module/apache/handle.c Wed Nov  2 13:23:16 2022
@@ -85,7 +85,7 @@ static void init_body(apreq_handle_t *en
 #endif
     if (cl_header != NULL) {
         char *dummy;
-        apr_int64_t content_length = apr_strtoi64(cl_header, &dummy, 0);
+        apr_int64_t content_length = apr_strtoi64(cl_header, &dummy, 10);
 
         if (dummy == NULL || *dummy != 0) {
             req->body_status = APREQ_ERROR_BADHEADER;

Modified: httpd/apreq/trunk/module/apache2/filter.c
URL: http://svn.apache.org/viewvc/httpd/apreq/trunk/module/apache2/filter.c?rev=1905019&r1=1905018&r2=1905019&view=diff
==============================================================================
--- httpd/apreq/trunk/module/apache2/filter.c (original)
+++ httpd/apreq/trunk/module/apache2/filter.c Wed Nov  2 13:23:16 2022
@@ -125,7 +125,7 @@ void apreq_filter_init_context(ap_filter
 
     if (cl_header != NULL) {
         char *dummy;
-        apr_uint64_t content_length = apr_strtoi64(cl_header,&dummy,0);
+        apr_uint64_t content_length = apr_strtoi64(cl_header,&dummy,10);
 
         if (dummy == NULL || *dummy != 0) {
             ap_log_rerror(APLOG_MARK, APLOG_ERR, APR_EGENERAL, r,