Re: [PATCH] staging: wfx: check ssidlen and prevent an array overflow

2020-04-24 Thread Jerome Pouiller
On Friday 24 April 2020 12:42:35 CEST Dan Carpenter wrote: > > We need to cap "ssidlen" to prevent a memcpy() overflow. > > Fixes: 40115bbc40e2 ("staging: wfx: implement the rest of mac80211 API") > Signed-off-by: Dan Carpenter > --- > drivers/staging/wfx/sta.c | 4 +++- > 1 file changed, 3 ins

[PATCH] staging: wfx: check ssidlen and prevent an array overflow

2020-04-24 Thread Dan Carpenter
We need to cap "ssidlen" to prevent a memcpy() overflow. Fixes: 40115bbc40e2 ("staging: wfx: implement the rest of mac80211 API") Signed-off-by: Dan Carpenter --- drivers/staging/wfx/sta.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wfx/sta.c b/drivers/