This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Partial fix for overflow bugs in run-time library
Andreas Jaeger <aj@suse.de> writes:
> Florian Weimer <fw@deneb.enyo.de> writes:
>
>> I've got no documentation on the readdir_r() function, so I can't tell
>> if the code is safe or not. The Win32 code is definitely unsafe and
>> needs fixing, but I haven't got a Win32 machine.
>
> I'm appending something from glibc's manual pages - hope this helps,
> Andreas
>
> - Function: int readdir_r (DIR *DIRSTREAM, struct dirent *ENTRY,
> struct dirent **RESULT)
The function used by GNAT takes only two parameters, so it has to be a
different one. :-/