zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.72k stars 6.55k forks source link

wifi: hostap: Fix null-terminate of passphrase/password for hostapd #79810

Open krish2718 opened 1 week ago

krish2718 commented 1 week ago

Describe the bug Commit https://github.com/zephyrproject-rtos/zephyr/commit/e71dc74228ef6730d1b1daf0f687f40bc52268d3 fixes null terminaton of passphrase/password in user input, but after that hostapd based SoftAP support is added and that path missed this fix.

To Reproduce By code review.

Expected behavior All paths should properly handle both password/passphrase either null terminated or not.

Impact Issues with Wi-Fi connection

Logs and console output NA

Environment (please complete the following information):

Additional context NA

krish2718 commented 1 week ago

FYI @nxf58150