[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remote hole in ftpd that can lead to root compromise



On Mon, Dec 04, 2000 at 11:52:48AM +0100, Kristian Vlaardingerbroek wrote:
> Hi,
> [...]
> 
> If MAXPATHLEN is reached, "npath[i] = '\0';" writes to
> npath[MAXPATHLEN+1].
> 
> The fix is very simple, just change char npath[MAXPATHLEN]; to char
> npath[MAXPATHLEN+1];

That is not the fix as MAXPATHLEN is not used to determine the length of
npath, sizeof(npath) is.