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
F167770886: D37626.id113928.diff
Mon, Aug 24, 10:21 AM
Unknown Object (File)
Sat, Aug 22, 11:10 AM
Unknown Object (File)
Wed, Aug 12, 4:56 PM
Unknown Object (File)
Mon, Aug 10, 6:29 AM
Unknown Object (File)
Sat, Aug 8, 5:28 PM
Unknown Object (File)
Sat, Aug 8, 10:30 AM
Unknown Object (File)
Sat, Aug 8, 2:17 AM
Unknown Object (File)
Wed, Aug 5, 2:20 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