[PATCH] wpa_supplicant: Fix ignoring boundary 0 in config parser

Jouni Malinen j at w1.fi
Sun Mar 3 09:27:38 PST 2024


On Thu, Feb 29, 2024 at 09:44:12PM +0800, Chien Wong wrote:
> The following config file contains invalid items:
> ----
> filter_rssi=1234 # should be rejected
> 
> network={
>  mode=-1 # should be rejected
>  ssid="ssid"
>  psk="password"
> }
> ----
> But it is accepted by the config parser. The issue is due to using NULL
> to represent no limit. If a boundary is set to 0, it's disregarded.
> Fix this.
> Note that string parser is not affected as length cannot be negative and
> we are not limiting any string to be always empty.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list