commit | c7b445ba6b5b5916d47daf22a77e6f67de3fc5f4 | [log] [tgz] |
---|---|---|
author | Roshan Pius <rpius@google.com> | Fri Apr 27 10:28:27 2018 -0700 |
committer | Roshan Pius <rpius@google.com> | Thu May 03 13:26:32 2018 -0700 |
tree | 79083432d3a269331e699a115514992417e71b01 | |
parent | d47fd3791387eded068f6554c0dfdaa0ee5ceef2 [diff] |
WifiConfigurationUtil: Validate UTF-8 ssid length correctly Validate the number of bytes in UTF-8 encoded SSID's. The previous check was only validating the number of characters which could end up violating the SSID length specification in the standard. Also, added an extra validation in NativeUtil.decodeSsid() to ensure the string is UTF-8 encoded. Bug: 78483295 Test: Unit tests Test: Able to add/update wifi network configs. Change-Id: I46076ba6b309af006c10f6a9d4ab1d9bc40be428