[Top][All Lists]

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


From: Neal H Walfield
Subject: Re: PATH_MAX
Date: Sun, 12 Aug 2001 21:07:41 +0200
User-agent: Mutt/1.3.18i

> +/* Distinguish between the cases when pathconf fails and when it reports 
> there
> +   is no limit (the latter is the case for PATH_MAX on the Hurd).  When there
> +   is no limit, return LONG_MAX.  Otherwise, return pathconf's return value. 
>  */

Are you sure that you really want to do this?  You use the result of
this in a variety of places as arrays on the stack.  This is basically
guaranteed to cause a seg fault.  Even if you changed that code to use
malloc, this is still way to large.

Attachment: pgpa5CmzG2T76.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]