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)
Fri, Sep 11, 4:09 AM
Unknown Object (File)
Fri, Sep 11, 4:04 AM
Unknown Object (File)
Thu, Sep 10, 3:13 PM
Unknown Object (File)
Sun, Sep 6, 11:37 PM
Unknown Object (File)
Sun, Sep 6, 12:28 AM
Unknown Object (File)
Sat, Sep 5, 8:55 PM
Unknown Object (File)
Sat, Sep 5, 3:06 PM
Unknown Object (File)
Sat, Sep 5, 7:12 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