Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/kern



On Mon, Jul 22, 2013 at 07:49:09AM +0100, Alexander Nasonov wrote:
> Taylor R Campbell wrote:
> > This shouldn't be necessary: snprintf guarantees null termination.
> > Did you observe a pool name without null termination in pool_init in
> > the wild?
> 
> I misremembered how snprintf works then. I didn't observe it in the wild
> but some dtrace code uses long vmem names ("dtrace_aggid_%d").

You might have remembered how the microsoft version of snprintf()
(doesn't) work!

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index