You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (group_info->addrs_num==1&&ESPNOW_ADDR_IS_BROADCAST(group_info->addrs_list[0])) {
321
332
set_group_flag= true;
322
333
} else {
334
+
if (size< (int)(sizeof(espnow_data_t) +sizeof(espnow_group_info_t) +group_info->addrs_num*ESPNOW_ADDR_LEN)) {
335
+
ESP_LOGD(TAG, "[%s, %d] GROUP packet too short for addrs_list (size %d, addrs_num %d)", __func__, __LINE__, size, group_info->addrs_num);
336
+
return;
337
+
}
338
+
323
339
if (espnow_data->size< (sizeof(espnow_group_info_t) +group_info->addrs_num*ESPNOW_ADDR_LEN)) {
324
340
ESP_LOGD(TAG, "[%s, %d] The size %d of the data must match with total size for addrs_num: %d", __func__, __LINE__, espnow_data->size, group_info->addrs_num);
0 commit comments