You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Lars Eilebrecht <La...@unix-ag.org> on 1997/09/27 00:17:49 UTC

[PATCH] PR#1160 - CacheDirLevels/Length limit

Hi,

here's again one of my infamous proxy-patches. ;-)
It fixes PR#1160.

mod_proxy uses cache-files with a size of 22 characters.
The structure of the cache directory can be manipulated via
CacheDirLevels and CacheDirLength, but Apache crashes if someone
uses values which result in a value greater than 22 for the
product of CacheDirLevels and CacheDirLength (eg. 30 for
CacheDirLength, like the user who submitted the PR).

The patch simply adds a check (on startup) to prevent such
values (and to check if the values are at least 1). 


ciao...
--
Lars Eilebrecht                          - It's been Monday all week.
sfx@unix-ag.org
http://www.si.unix-ag.org/~sfx/