Fixed the issue memory access out of bounds in a2dp_source example

pull/10391/head
Jin Cheng 2022-11-18 15:29:06 +08:00
rodzic 7a947e829a
commit 82d51a5bb3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -353,7 +353,7 @@ static int32_t bt_app_a2d_data_cb(uint8_t *data, int32_t len)
return 0;
}
int *p_buf = (int *)data;
int16_t *p_buf = (int16_t *)data;
for (int i = 0; i < (len >> 1); i++) {
p_buf[i] = rand() % (1 << 16);
}