Under -fbounds-safety mtod() and mtodo() return a pointer bounded by the
mbuf's storage, and mtod_len() narrows that to m_len. Without the flag
nothing changes. debug.bounds_mtod_test checks which reads trap.
Sponsored by: The FreeBSD Foundation
Differential D60829
mbuf: add bounds-checked mtod() accessors under bounds-safety Authored by abhijeetsharma2002_gmail.com on Sun, Oct 18, 1:41 AM. Tags None Referenced Files
Details
Diff Detail
|