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)
Sat, May 11, 7:21 AM
Unknown Object (File)
Fri, May 10, 9:42 PM
Unknown Object (File)
Sun, Apr 28, 1:49 PM
Unknown Object (File)
Mon, Apr 22, 4:16 PM
Unknown Object (File)
Mon, Apr 22, 4:16 PM
Unknown Object (File)
Mon, Apr 22, 4:16 PM
Unknown Object (File)
Mon, Apr 22, 4:04 PM
Unknown Object (File)
Dec 20 2023, 7:30 PM
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