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, Jul 24, 5:09 PM
Unknown Object (File)
Fri, Jul 18, 3:12 PM
Unknown Object (File)
Jun 26 2025, 4:04 PM
Unknown Object (File)
Jun 25 2025, 11:35 AM
Unknown Object (File)
Jun 17 2025, 10:51 PM
Unknown Object (File)
Jun 15 2025, 4:54 PM
Unknown Object (File)
Jun 7 2025, 1:00 AM
Unknown Object (File)
Jun 5 2025, 6:24 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 48643
Build 45529: arc lint + arc unit