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)
Dec 1 2024, 4:14 AM
Unknown Object (File)
Nov 26 2024, 9:15 AM
Unknown Object (File)
Nov 20 2024, 8:31 PM
Unknown Object (File)
Nov 20 2024, 2:37 AM
Unknown Object (File)
Nov 16 2024, 12:41 AM
Unknown Object (File)
Nov 15 2024, 9:32 PM
Unknown Object (File)
Nov 13 2024, 2:54 AM
Unknown Object (File)
Nov 6 2024, 2:21 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