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
F168222772: D37626.diff
Thu, Aug 27, 12:28 AM
F168203343: D37626.id113928.diff
Wed, Aug 26, 9:10 PM
Unknown Object (File)
Wed, Aug 26, 9:50 AM
Unknown Object (File)
Wed, Aug 26, 8:56 AM
Unknown Object (File)
Wed, Aug 26, 6:29 AM
Unknown Object (File)
Mon, Aug 24, 10:21 AM
Unknown Object (File)
Sat, Aug 22, 11:10 AM
Unknown Object (File)
Wed, Aug 12, 4:56 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 48643
Build 45529: arc lint + arc unit