Page MenuHomeFreeBSD

iee80211_hwmp: Don't dereference NULL ni in debug printf.
ClosedPublic

Authored by jhb on Dec 7 2022, 8:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 13, 3:56 PM
Unknown Object (File)
Mon, Nov 10, 12:34 AM
Unknown Object (File)
Fri, Nov 7, 12:08 PM
Unknown Object (File)
Mon, Nov 3, 4:42 AM
Unknown Object (File)
Mon, Nov 3, 12:28 AM
Unknown Object (File)
Sun, Nov 2, 6:17 AM
Unknown Object (File)
Mon, Oct 27, 9:15 PM
Unknown Object (File)
Oct 16 2025, 5:28 AM
Subscribers

Details

Summary

In this call to IEEE80211_NOTE, ni is always NULL due to the assignment
a few lines earlier at the start of the function. If debug traces are
enabled, then this will pass an invalid pointer as the 'mac' pointer to
ieee80211_note_mac. Use IEEE80211_DPRINTF which doesn't take a 'ni'
argument instead.

Reported by: GCC -Wstringop-overread

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable