]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/http/http_protocol.c (ap_make_method_list): Fix possible
authorJoe Orton <jorton@apache.org>
Fri, 30 Jan 2004 13:13:30 +0000 (13:13 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 30 Jan 2004 13:13:30 +0000 (13:13 +0000)
memory corruption.

Submitted by: Jeff Trawick
Reviewed by: Joe Orton, Andr�� Malo

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

CHANGES
modules/http/http_protocol.c

diff --git a/CHANGES b/CHANGES
index 9e208883534252cb568ff6f263bd9230b44bedf9..59a2ef3450938193348c734eb56bc84e1d139e1f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
 Changes with Apache 2.0.49
 
+  *) Build array of allowed methods with proper dimensions, fixing
+     possible memory corruption.  [Jeff Trawick]
+
   *) mod_ssl: Fix potential segfault on lookup of SSL_SESSION_ID.
      PR 15057.  [Otmar Lendl <lendl nic.at>]
 
index 7be48da8600c8db84d0889494bd4dbc485d4b2f1..6e4128237fba41b0413696b549e761cdfaf52815 100644 (file)
@@ -2470,7 +2470,7 @@ AP_DECLARE(ap_method_list_t *) ap_make_method_list(apr_pool_t *p, int nelts)
 
     ml = (ap_method_list_t *) apr_palloc(p, sizeof(ap_method_list_t));
     ml->method_mask = 0;
-    ml->method_list = apr_array_make(p, sizeof(char *), nelts);
+    ml->method_list = apr_array_make(p, nelts, sizeof(char *));
     return ml;
 }