www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steffen Roller ...@daa.de>
Subject config/5550: handling of TAKE13 parameters
Date Thu, 06 Jan 2000 18:21:11 GMT

>Number:         5550
>Category:       config
>Synopsis:       handling of TAKE13 parameters
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Jan 06 10:30:00 PST 2000
>Originator:     sr@daa.de
>Release:        1.3.9
Windows NT 4.0 SP5
Compiler MSVC 6.0 SP3
I am writing a special module for apache in the win32 environment. I declare
one of my directives in command_rec for my module as follows
 "archiv", set_scanview_connection, NULL, ACCESS_CONF, TAKE13,
 "name of archiv, optional followed by username and password"

Case 1)
If I put a line like this in the httpd.conf
archiv svpdev user passwd
everything goes well.

Case 2)
archiv svpdev user
the server gave me the cmd->info string.

Case 3)
archiv svpdev
the server crashes in http_config.c line# 884
if (*w == '\0' || (*w2 && !w3) || *args != 0)
In this case, the pointer w2 is NULL and therefore the program crashes with an 
"access violation". I now, I can't dereference a NULL pointer. I propose the
following line:
if (*w == '\0' || (w2 && *w2 && !w3) || *args != 0)
This checks the pointer w2 before we are going to derefence him.
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message