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)
Tue, Apr 15, 2:37 AM
Unknown Object (File)
Sat, Mar 22, 11:40 PM
Unknown Object (File)
Mar 12 2025, 12:55 PM
Unknown Object (File)
Mar 10 2025, 11:07 PM
Unknown Object (File)
Feb 26 2025, 1:36 AM
Unknown Object (File)
Feb 17 2025, 9:44 PM
Unknown Object (File)
Dec 1 2024, 4:14 AM
Unknown Object (File)
Nov 26 2024, 9:15 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