]> granicus.if.org Git - apache/commitdiff
Merge r1748653 from trunk:
authorJim Jagielski <jim@apache.org>
Thu, 16 Jun 2016 12:35:58 +0000 (12:35 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 16 Jun 2016 12:35:58 +0000 (12:35 +0000)
Fix a potential buffer overflow.
Submitted by: jailletc36
Reviewed/backported by: jim

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

STATUS
modules/filters/sed0.c

diff --git a/STATUS b/STATUS
index 40982ad62ff84ef3f7a1d39a7fe17aaa36e3a3c7..46b3d8821b8a49fb7caeecb4888ed5a6318b1521 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -114,10 +114,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  *) mod_sed: Fix a potential buffer overflow.
-     trunk patch: http://svn.apache.org/r1748653
-     2.4.x: trunk patch works
-     +1: jailletc36, rpluem, jim
 
 
 
index ddc4bfed8e52476551af5ca9e0b333d1127d6eb8..a044f647dba04660e9cc056b919db686b8fdb445 100644 (file)
@@ -588,7 +588,7 @@ jtcommon:
                     command_errf(commands, SEDERR_SMMES, commands->linebuf);
                     return -1;
                 }
-                if (text(commands, fnamebuf, &fnamebuf[APR_PATH_MAX]) == NULL) {
+                if (text(commands, fnamebuf, &fnamebuf[APR_PATH_MAX-1]) == NULL) {
                     command_errf(commands, SEDERR_FNTL, commands->linebuf);
                     return -1;
                 }
@@ -617,7 +617,7 @@ jtcommon:
                 command_errf(commands, SEDERR_SMMES, commands->linebuf);
                 return -1;
             }
-            if (text(commands, fnamebuf, &fnamebuf[APR_PATH_MAX]) == NULL) {
+            if (text(commands, fnamebuf, &fnamebuf[APR_PATH_MAX-1]) == NULL) {
                 command_errf(commands, SEDERR_FNTL, commands->linebuf);
                 return -1;
             }