3APA3A wrote:
> Dear Ben Hutchings,
>
>
> If someone uses pathconf to determine buffer size it's his own problem
> and he creates vulnerability by himself. You can list such applications
> as vulnerable to race conditions.
> NAME_MAX is defined in limits.h and should be 255 according to la
Dear Ben Hutchings,
If someone uses pathconf to determine buffer size it's his own problem
and he creates vulnerability by himself. You can list such applications
as vulnerable to race conditions.
Recommended (according to POSIX) way is to use NAME_MAX:
buf = (struct dirent *)malloc( of
readdir_r considered harmful
Issued by Ben Hutchings <[EMAIL PROTECTED]>, 2005-11-01.
Background
--
The POSIX readdir_r function is a thread-safe version of the readdir
function used to read directory entries. Whereas readdir returns a
pointer to a system-al