]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Backport the relevant bits from r1227856:
authorStefan Fritsch <sf@apache.org>
Tue, 29 May 2012 18:42:22 +0000 (18:42 +0000)
committerStefan Fritsch <sf@apache.org>
Tue, 29 May 2012 18:42:22 +0000 (18:42 +0000)
Cure size_t abuse

Reviewed by: wrowe, rpluem, jorton

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1343907 13f79535-47bb-0310-9956-ffa450edef68

STATUS
modules/proxy/ajp_msg.c
modules/proxy/mod_proxy.h
modules/proxy/proxy_util.c

diff --git a/STATUS b/STATUS
index 4607d4a8d1564df0b47d0c30fb71770533ef48f2..9b725717a3bda4bdbbf34f8d421ba553254098e3 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -93,14 +93,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  * mod_proxy: cure size_t abuse part 1, backport relevant bits of r1227856,
-    Specifically normalizes ap_proxy_string_read so that the prototype
-    agrees with the actual implementation, which I believe is a bug fix
-    as opposed to an actual API change, ergo no MMN bump necessary(?).
-    Branch patch:
-      http://svn.apache.org/viewvc?rev=1227860&view=rev
-    +1: wrowe, rpluem, jorton
-
   * configure: Using external apr and apu in non-default path
     breaks configure, since checking for apu version does not
     set up apr include path in CPPFLAGS.
index eef2a5381a1e2930b23093f80a9a0108e8423c05..fd9780cda6a108564c897d6a669c81478f416aff 100644 (file)
@@ -274,7 +274,7 @@ apr_status_t ajp_msg_append_uint8(ajp_msg_t *msg, apr_byte_t value)
 apr_status_t ajp_msg_append_string_ex(ajp_msg_t *msg, const char *value,
                                       int convert)
 {
-    size_t len;
+    apr_size_t len;
 
     if (value == NULL) {
         return(ajp_msg_append_uint16(msg, 0xFFFF));
index f602fb04b524016fa37b1d0e140d195c6ed594b5..97bb8c68a9f24336f7a8b8fcad79f45ba35608c9 100644 (file)
@@ -493,7 +493,7 @@ PROXY_DECLARE(int) ap_proxy_is_hostname(struct dirconn_entry *This, apr_pool_t *
 PROXY_DECLARE(int) ap_proxy_is_word(struct dirconn_entry *This, apr_pool_t *p);
 PROXY_DECLARE(int) ap_proxy_checkproxyblock(request_rec *r, proxy_server_conf *conf, apr_sockaddr_t *uri_addr);
 PROXY_DECLARE(int) ap_proxy_pre_http_request(conn_rec *c, request_rec *r);
-PROXY_DECLARE(apr_status_t) ap_proxy_string_read(conn_rec *c, apr_bucket_brigade *bb, char *buff, size_t bufflen, int *eos);
+PROXY_DECLARE(apr_status_t) ap_proxy_string_read(conn_rec *c, apr_bucket_brigade *bb, char *buff, apr_size_t bufflen, int *eos);
 PROXY_DECLARE(void) ap_proxy_table_unmerge(apr_pool_t *p, apr_table_t *t, char *key);
 /* DEPRECATED (will be replaced with ap_proxy_connect_backend */
 PROXY_DECLARE(int) ap_proxy_connect_to_backend(apr_socket_t **, const char *, apr_sockaddr_t *, const char *, proxy_server_conf *, server_rec *, apr_pool_t *);
index 95f4a784fcebf54438f387db60a7de201a4e9ee0..a86c63d42fd04cf86e58f18c13591cf5f8fd5f47 100644 (file)
@@ -1149,14 +1149,14 @@ PROXY_DECLARE(const char *) ap_proxy_cookie_reverse_map(request_rec *r,
     proxy_req_conf *rconf = ap_get_module_config(r->request_config,
                                                  &proxy_module);
     struct proxy_alias *ent;
-    size_t len = strlen(str);
+    apr_size_t len = strlen(str);
     const char *newpath = NULL;
     const char *newdomain = NULL;
     const char *pathp;
     const char *domainp;
     const char *pathe = NULL;
     const char *domaine = NULL;
-    size_t l1, l2, poffs = 0, doffs = 0;
+    apr_size_t l1, l2, poffs = 0, doffs = 0;
     int i;
     int ddiff = 0;
     int pdiff = 0;