]> git.pld-linux.org Git - packages/apache.git/commitdiff
- mod_include fix: don't segfault on GET request with bad URI
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 10 Feb 2001 00:30:15 +0000 (00:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_include-segv.patch -> 1.1

apache-mod_include-segv.patch [new file with mode: 0644]

diff --git a/apache-mod_include-segv.patch b/apache-mod_include-segv.patch
new file mode 100644 (file)
index 0000000..72dedbe
--- /dev/null
@@ -0,0 +1,13 @@
+--- apache_1.3.17/src/modules/standard/mod_include.c.orig      Fri Feb  9 20:24:46 2001
++++ apache_1.3.17/src/modules/standard/mod_include.c   Fri Feb  9 21:50:39 2001
+@@ -718,8 +718,8 @@
+                 for (p = r; p != NULL && !founddupe; p = p->main) {
+                   request_rec *q;
+                   for (q = p; q != NULL; q = q->prev) {
+-                      if ( (strcmp(q->filename, rr->filename) == 0) ||
+-                           (strcmp(q->uri, rr->uri) == 0) ){
++                      if ( (q->filename!=NULL && (strcmp(q->filename, rr->filename) == 0))
++                           || (q->uri!=NULL && (strcmp(q->uri, rr->uri) == 0)) ){
+                           founddupe = 1;
+                           break;
+                       }
This page took 0.156047 seconds and 4 git commands to generate.