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
F102687957: D37626.diff
Fri, Nov 15, 9:32 PM
Unknown Object (File)
Wed, Nov 13, 2:54 AM
Unknown Object (File)
Wed, Nov 6, 2:21 AM
Unknown Object (File)
Wed, Oct 23, 6:09 AM
Unknown Object (File)
Sep 28 2024, 6:24 AM
Unknown Object (File)
Sep 19 2024, 11:39 PM
Unknown Object (File)
Sep 18 2024, 10:13 AM
Unknown Object (File)
Sep 10 2024, 8:31 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