summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2003-10-19 22:33:41 +0000
committersilby <silby@FreeBSD.org>2003-10-19 22:33:41 +0000
commit4add8d9302f95e90df2c7b01613648b4f8c2a8a7 (patch)
tree380a9f5bd024e0fdbc9f53870898d9246166b4c0 /lib/libc
parent9f420bf43d995bad7e87dd407faafcddbe12d343 (diff)
downloadFreeBSD-src-4add8d9302f95e90df2c7b01613648b4f8c2a8a7.zip
FreeBSD-src-4add8d9302f95e90df2c7b01613648b4f8c2a8a7.tar.gz
Add a new macro M_ASSERTVALID which ensures that the mbuf in question
is non-free. (More checks can/should be added in the future.) Use M_ASSERTVALID in BPF_MTAP so that we catch when freed mbufs are passed in, even if no bpf listeners are active. Inspired by a bug in if_dc caught by Kenjiro Cho.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud