Skip to content
Commit 85b39b84 authored by Sachin D Kulkarni's avatar Sachin D Kulkarni Committed by Carles Cufí
Browse files

net: wifi: Fix crash in wifi_utils_parse_scan_ssids



wifi_utils_parse_scan_ssids could cause a crash if a constant string is
passed to it. Fix this by duplicating the input string parameter before
parsing it with strtok_r.

Also limit the range of the CONFIG_WIFI_SCAN_SSID_FILT_MAX parameter
from 1 to 4 to avoid stack overflow due to users specifying a large
value for this parameter.

Signed-off-by: default avatarSachin D Kulkarni <sachin.kulkarni@nordicsemi.no>
parent 0b92327f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment