major improvements to temp file name generator
authorRich Felker <dalias@aerifal.cx>
Fri, 18 Feb 2011 22:04:56 +0000 (17:04 -0500)
committerRich Felker <dalias@aerifal.cx>
Fri, 18 Feb 2011 22:04:56 +0000 (17:04 -0500)
use current time in nanoseconds and some potentially-random (if aslr
is enabled) pointer values for the initial tempfile name generation,
and step via a cheap linear prng on collisions. limit the number of
retry attempts to prevent denial of service attacks even if an
attacker can guess the filenames.


No differences found