BugTraq
readdir_r considered harmful Nov 01 2005 03:57AM
Ben Hutchings (ben decadentplace org uk) (2 replies)
Re: readdir_r considered harmful Nov 05 2005 06:45PM
Casper Dik Sun COM (1 replies)
Re: [Full-disclosure] Re: readdir_r considered harmful Nov 06 2005 01:53AM
Ulrich Drepper (drepper gmail com) (1 replies)
Re: [Full-disclosure] Re: readdir_r considered harmful Nov 06 2005 09:00AM
Casper Dik Sun COM (1 replies)
Re: [Full-disclosure] Re: readdir_r considered harmful Nov 06 2005 03:34PM
Ulrich Drepper (drepper gmail com) (1 replies)
On 11/6/05, Casper.Dik (at) sun (dot) com [email concealed] <Casper.Dik (at) sun (dot) com [email concealed]> wrote:
> I don't see how that is relevant; the typical use of readdir() is as follows:
>
> DIR *dirp = opendir(name);
>
> while ((dent = readdir(dirp)) != NULL) {
> ...
> }
>
> closedir(dirp);
>
> Nothing other threads do with readdir() on different dirp's will influence
> what "dent" points to.

The issue is multiple threads using the same DIR.

[ reply ]
Re: [Full-disclosure] Re: readdir_r considered harmful Nov 06 2005 07:19PM
Casper Dik Sun COM (1 replies)
Re: [Full-disclosure] Re: readdir_r considered harmful Nov 08 2005 01:47AM
Andrew Miller (andrew amxl com)
Re: readdir_r considered harmful Nov 01 2005 08:16PM
Ben Hutchings (ben decadentplace org uk)


 

Privacy Statement
Copyright 2010, SecurityFocus