[klibc] [PATCH] Add minimal mkstemp(3) implementation.

Thorsten Glaser tg at mirbsd.de
Sun Feb 27 12:57:34 PST 2011


Dixi quod…

>This uses time, ASLR and pid for randomisation. (Closes: #516774)

This patch replaces both the following ones I sent in January:
• <Pine.BSM.4.64L.1101291726340.10936.p1 at herc.mirbsd.org>
• <Pine.BSM.4.64L.1101291726340.10936.p2 at herc.mirbsd.org>

This time I use jrand48(3) directly with very minimal seeding.

I have put this patch, on top of today’s master (except the
one changing the version number), plus my m68k patch from
January – <Pine.BSM.4.64L.1101291722390.10936 at herc.mirbsd.org>
was that, in a Debian package, built it, installed it in a
cowbuilder shell (throw-away sid chroot), built mksh against
it (both statically and dynamically), and it passed the test
suite with 0 unexpected failures, each. (Probably due to the
open() fix; apparently the signal failures I saw were from
the stack corruption.)

I’ll now test it on m68k as well, to validate that patch.

bye,
//mirabilos
-- 
13:47⎜<tobiasu> if i were omnipotent, i would divide by zero
                all day long ;)
(thinking about http://lobacevski.tumblr.com/post/3260866481 by waga)



More information about the klibc mailing list