lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <a36005b50511060734l6ced511u47b6e860134bc60b@mail.gmail.com> Date: Sun Nov 6 15:35:02 2005 From: drepper at gmail.com (Ulrich Drepper) Subject: Re: readdir_r considered harmful On 11/6/05, Casper.Dik@....com <Casper.Dik@....com> 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.