OSDN Git Service

Close security hole in tmpfile.
authorericb <ericb>
Wed, 16 May 2007 20:06:07 +0000 (20:06 +0000)
committerericb <ericb>
Wed, 16 May 2007 20:06:07 +0000 (20:06 +0000)
commit5ce887d4fdcf8380ef9b77b8520fb412f2fea92c
treed92bdb9380bbd1680ced2924c385550c1353718d
parent99e59840bda5c185acaa78683676379f06307fdf
Close security hole in tmpfile.
* libc/stdio/tmpfile.c (_tmpfile_r): Avoid window between filename
generation and opening the fd.
* libc/stdio64/tmpfile64.c (_tmpfile64_r): Likewise.
newlib/ChangeLog
newlib/libc/stdio/tmpfile.c
newlib/libc/stdio64/tmpfile64.c