>Number:         1378
>Category:       os-windows
>Synopsis:       Server on Windows NT crashes with very long URL
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Nov  7 06:30:00 PST 1997
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.3b2
>Environment:
NT 4.0  Visual C++ 5.0
>Description:
When a long URL (such as a query URL) is received, the Windows NT version of 
Apache crashes with stack corruption.
>How-To-Repeat:
http://mars.superlink.net/rzeitel/cass.html, then press Create button
>Fix:
The problem is caused by character buffers in sub_canonical_filename and 
os_canonical_filename in \os\win32\util_win32.c being too small.  Changing 
their size from _MAX_PATH to HUGE_STRING_LENGTH appears to fix the problem.

In the same area, inserting the following lines at the beginning of 
sub_canonical_filename appears to fix problems 1265 and 1315:
    if (strncmp(szFile, "proxy:", 6) == 0)
    {
        strcpy (szCanon, szFile);
        return;
    }
%0
>Audit-Trail:
>Unformatted:

Reply via email to