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, Oct 16, 5:28 AM
Unknown Object (File)
Sat, Oct 11, 11:13 AM
Unknown Object (File)
Mon, Oct 6, 10:50 PM
Unknown Object (File)
Thu, Sep 25, 8:32 PM
Unknown Object (File)
Thu, Sep 18, 8:34 PM
Unknown Object (File)
Sep 14 2025, 5:27 PM
Unknown Object (File)
Sep 12 2025, 6:03 PM
Unknown Object (File)
Sep 11 2025, 9:56 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