wpa_config_get_line can badly parse a password with # and "

Baptiste Clenet bapclenet at gmail.com
Thu Apr 11 07:18:36 PDT 2024


Here is a password that wpa_config_get_line fails to parse

I made an example with several password on https://onlinegdb.com/9YFBl7Zba
By patch in this example I mentionned patch from xinpeng wang

I suggest to revert the patch and to not allow " in comment #
I didn't find any pattern that match my password and what xinpeng wang
wanted (a=b #"abc")

I attach a patch that revert xinpeng wang patch.

What do you think?
Feel free to include my patch, I'm not used to send patch as email

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Changes-On-147f83.patch
Type: text/x-patch
Size: 768 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/hostap/attachments/20240411/9ebbb72f/attachment.bin>

More information about the Hostap mailing list