]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Backport from HEAD:
authorJoe Orton <jorton@apache.org>
Wed, 15 Sep 2004 10:47:56 +0000 (10:47 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 15 Sep 2004 10:47:56 +0000 (10:47 +0000)
* server/protocol.c (ap_rgetline_core): Fix off-by-one.

Reviewed by: jerenkrantz, trawick

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

STATUS
server/protocol.c

diff --git a/STATUS b/STATUS
index 93b548a4786567d368246a24b945efbf18605f26..fc1f910b94aba60017c6afa53471a397610c0264 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -1,5 +1,5 @@
 APACHE 2.0 STATUS:                                              -*-text-*-
-Last modified at [$Date: 2004/09/15 10:31:16 $]
+Last modified at [$Date: 2004/09/15 10:47:56 $]
 
 Release:
 
@@ -73,10 +73,6 @@ PATCHES TO BACKPORT FROM 2.1
   [ please place file names and revisions from HEAD here, so it is easy to
     identify exactly what the proposed changes are! ]
 
-    *) ap_rgetline_core correctness fix.
-       http://cvs.apache.org/viewcvs.cgi/httpd-2.0/server/protocol.c?r1=1.151&r2=1.152
-       +1: jorton, jerenkrantz, trawick
-
     *) mod_rewrite: Fix 0 bytes write into random memory position. PR 31036.
        (2.0 + 1.3)
          http://www.apache.org/~nd/dbmmap_1.3.patch
index 82b95f3ca4a19119b68037e088e52c8128998ec4..028bcb9beee8a1f1ede0f7b3feffdb5c187cdcd3 100644 (file)
@@ -253,7 +253,7 @@ AP_DECLARE(apr_status_t) ap_rgetline_core(char **s, apr_size_t n,
             if (*s) {
                 /* ensure this string is terminated */
                 if (bytes_handled < n) {
-                    (*s)[bytes_handled] = '\0';
+                    (*s)[bytes_handled-1] = '\0';
                 }
                 else {
                     (*s)[n-1] = '\0';