bin/166483: if_nametoindex sends un-initialized bytes to ioctl

Gleb Smirnoff glebius at FreeBSD.org
Fri Mar 30 10:26:49 UTC 2012


On Thu, Mar 29, 2012 at 03:52:23PM -0700, Xin Li wrote:
X> I think we would probably want to put the proposed change under #ifdef
X> PURIFY -- the initialization is not necessary since the uninitialized
X> part is never touched for the whole codepath.

The function isn't performance important, so I think we can put bzero()
here w/o any defines.

More and more people are using valgrind, we'd better have a libc that
valgrind won't whine at, otherwise we would have more noise on mailing
lists.

-- 
Totus tuus, Glebius.


More information about the freebsd-bugs mailing list