>Number: 2400
>Category: general
>Synopsis: The creation of allowed_globals in http_main.c is incorrect
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Tue Jun 9 23:10:01 PDT 1998
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.3.0
>Environment:
na
>Description:
In http_main.c:
/*
* Globals common to main and worker threads. This structure is not
* used by the parent process.
*/
typedef struct globals_s {
#ifdef UNGRACEFUL_RESTART
HANDLE thread_exit_event;
#else
int exit_now;
#endif
semaphore *jobsemaphore;
joblist *jobhead;
joblist *jobtail;
mutex *jobmutex;
int jobcount;
} globals;
globals allowed_globals =
{0, NULL, NULL, NULL, 0};
Shouldn't allowed_globals be defined as:
globals allowed_globals =
{0, NULL, NULL, NULL, NULL, 0};
>How-To-Repeat:
na
>Fix:
see above
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]