hostap expects null-termianted ssid and psk parameter strings

It seems hostap has a bug. This line:

https://github.com/nrfconnect/sdk-nrf/blob/4e9436d1076a362adf168e6a8878a8b32b8bff4d/modules/hostap/src/supp_api.c#L312C2-L312C78

assumes the ssid is null-terminated. Same for the psk parameter. I can't see where this diversion from the WiFi standard is documented, or even discussed anywhere. It seems the user needs to add the null-termination, and at the very least, null octets and double quotes within the strings are not supported. Is that right?

Related