Commit a85b8544 authored by Johannes Berg's avatar Johannes Berg
Browse files

wifi: remove zero-length arrays



All of these are really meant to be variable-length, and
in the case of s1g_beacon it's actually accessed. Make that
one in particular, and a couple of others (that aren't used
as arrays now), actually variable.

Reported-by: default avatar <syzbot+fd222bb38e916df26fa4@syzkaller.appspotmail.com>
Fixes: 1e1f706f ("wifi: cfg80211/mac80211: correctly parse S1G beacon optional elements")
Link: https://patch.msgid.link/20250614003037.a3e82e882251.I2e8b58e56ff2a9f8b06c66f036578b7c1d4e4685@changeid


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 27605c8c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment