We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09515b0 commit c3f71bfCopy full SHA for c3f71bf
examples/platform/silabs/efr32/wf200/host_if.cpp
@@ -737,6 +737,7 @@ int32_t wfx_get_ap_info(wfx_wifi_scan_result_t * ap)
737
int32_t signal_strength;
738
739
ap->ssid_length = strnlen(ap_info.ssid, chip::min<size_t>(sizeof(ap_info.ssid), WFX_MAX_SSID_LENGTH));
740
+ // ap->ssid is of size WFX_MAX_SSID_LENGTH+1, we are safe with the ap->ssid_length calculated above
741
chip::Platform::CopyString(ap->ssid, ap->ssid_length + 1, ap_info.ssid); // +1 for null termination
742
memcpy(ap->bssid, ap_info.bssid, sizeof(ap_info.bssid));
743
ap->security = ap_info.security;
0 commit comments