You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/03/13 09:07:13 UTC

DO NOT REPLY [Bug 41829] New: - usage of an uninitialized structure member in server/request.c

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41829>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41829

           Summary: usage of an uninitialized structure member in
                    server/request.c
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: PatchAvailable
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: torsten.foertsch@gmx.net


in ap_directory_walk the opts structure represents the currently active options
and allowed overrides. In 2.2.0 "AllowOverride Options=..." was introduced and
with it a new member of this structure override_opts. Unfortunately this member
is not properly initialized from this_dir->override_opts. This prevents
maptostorage handlers from inserting additional configuration statements like
mod_perls "$r->add_config(['AllowOverride Options'])". With Apache 2.0.x this
has worked but has ceased to since 2.2.0 because opts.override_opts is by chance 0.

This simple patch cures the problem:

--- server/request.c~   2007-03-11 17:20:25.000000000 +0100
+++ server/request.c    2007-03-11 17:50:01.000000000 +0100
@@ -631,6 +631,7 @@
         opts.add = this_dir->opts_add;
         opts.remove = this_dir->opts_remove;
         opts.override = this_dir->override;
+        opts.override_opts = this_dir->override_opts;

         /* Set aside path_info to merge back onto path_info later.
          * If r->filename is a directory, we must remerge the path_info,

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41829] - usage of an uninitialized structure member in server/request.c

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41829>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41829


torsten.foertsch@gmx.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From torsten.foertsch@gmx.net  2007-03-26 09:25 -------
Fixed as revision 522011, see

http://svn.apache.org/viewvc?view=rev&revision=522011

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41829] - usage of an uninitialized structure member in server/request.c

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41829>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41829





------- Additional Comments From torsten.foertsch@gmx.net  2007-03-13 01:10 -------
Created an attachment (id=19700)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19700&action=view)
it initializes opts.override_opts properly


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org