Page MenuHomeFreeBSD

ifconf(): Always zero the whole struct ifreq.
ClosedPublic

Authored by brooks on Mar 30 2018, 10:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 12:21 PM
Unknown Object (File)
Fri, Nov 22, 9:48 AM
Unknown Object (File)
Wed, Nov 20, 8:10 PM
Unknown Object (File)
Sat, Nov 16, 4:28 PM
Unknown Object (File)
Wed, Nov 6, 5:14 AM
Unknown Object (File)
Tue, Nov 5, 9:50 PM
Unknown Object (File)
Sep 28 2024, 5:26 PM
Unknown Object (File)
Sep 22 2024, 1:27 PM
Subscribers

Details

Summary

The previous split of zeroing ifr_name and ifr_addr seperately is safe
on current architectures, but would be unsafe if pointers were larger
than 8 bytes. Combining the zeroing adds no real cost (a few
instructions) and makes the security property easier to verify.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable